Improve your visualizations with ggsave in R

When we save our plots and graphs in R, we can use the ggsave() function and specify the type, size and look of the file. We are going to look two features in particular: anti-aliasing lines with the Cairo package and creating transparent backgrounds. Make your graph background transparent First, let’s create a pie chart with a transparent background. The pie chart will show which … Continue reading Improve your visualizations with ggsave in R

Download European Social Survey data with essurvey package in R

The European Social Survey (ESS) measure attitudes in thirty-ish countries (depending on the year) across the European continent. It has been conducted every two years since 2001. The survey consists of a core module and two or more ‘rotating’ modules, on social and public trust; political interest and participation; socio-political orientations; media use; moral, political and social values; social exclusion, national, ethnic and religious allegiances; well-being, … Continue reading Download European Social Survey data with essurvey package in R