# Articles by Petr Baranovskiy

### Correlation Analysis in R, Part 2: Performing and Reporting Correlation Analysis

January 31, 2021 |

Part 2 of the series of tutorials on correlation analysis in R. In this part, I will provide an overview of the relevant packages and functions. I will also address some of the best practices to write up and visualize correlations as text, tables, and correlation matrices in online and print ...

### Correlation Analysis in R, Part 1: Basic Theory

January 1, 2021 |

Part 1 of the series of practical hands-on tutorials on performing correlation analysis in R. In this part, I will provide a simple and practical overview of what correlation coefficients are, what they tell and don't tell us, when they are meaningful (aka statistically significant) and when they aren't, and what ...

### ggwebthemes: Some ggplot2 Themes Optimized for Blogs

September 4, 2020 |

An R package containing themes for ggplot2 that have been optimized for blogs and similar online usage: theme_web_bw, theme_web_classic, and theme_web_void.

### Writing Functions to Automate Repetitive Plotting Tasks in ggplot2

July 7, 2020 |

Sooner or later (usually sooner) a data analyst runs into a situation where one needs to make multiple visualizations on the same subject, which can be slow and time-consuming. By writing simple functions, it is possible to automate most of the work, thus greatly simplifying and speeding up repetitive plotting ...

### Working with Statistics Canada Data in R, Part 6: Visualizing Census Data

June 11, 2020 |

A detailed tutorial on visualizing Canadian Census data using R.

April 17, 2020 |

An interactive dashboard to explore the Government of Canada's official statistics on the spread of the COVID-19 disease. Built with R Shiny, Leaflet, and plotly. Auto-updated every six hours.

### Working with Statistics Canada Data in R, Part 5: Retrieving Census Data

March 20, 2020 |

A detailed tutorial on using R to retrieve, and work with Canadian Census data.

### Working with Statistics Canada Data in R, Part 4: Canadian Census Data – cancensus Package Setup

February 17, 2020 |

How to set up the 'cancensus' R package - the best tool to work with the Canadian Census data. [Read more...]

### Working with Statistics Canada Data in R, Part 3: Visualizing CANSIM Data

November 24, 2019 |

A detailed example of using R to visualize Statistics Canada CANSIM data, step-by-step.

### Working with Statistics Canada Data in R, Part 2: Retrieving CANSIM Data

November 14, 2019 |

A detailed tutorial on using R to retrieve and clean Statistics Canada CANSIM data, step-by-step.

### GIS Day!

November 13, 2019 |

A collection of links to some great R-spatial resources, sources of geospatial data, and other GIS-related stuff that you may find useful. [Read more...]

### Working with Statistics Canada Data in R, Part 1: What is CANSIM?

November 3, 2019 |

CANSIM, also known as Statistics Canada Data, stands for Canadian Socioeconomic Information Management System. Here I'll address some of the key features of CANSIM data and explain how to set up the R tools required to work with it. [Read more...]