Over or below the red line: Summary: Current and historical mortality data can be used for assessing the net cost of current pandemic. Hungarian data for the first eight months are favourable compared to the US. However the infection curves are rising in several EU countries while the spread of the virus seems to be slowing...
Posted on:
Adding European capitals to Eurostat map: One can easily draw a map for 37 “Eurostat countries” as it was demonstrated in this post. However adding capital cities to the map can be tricky. The following example will use {maps} package for this purpose. The data at hand needs to be updated and cleaned to reflect recent...
Posted on:
Mapping Eurostat data: Recently, I found a post on mapping Eurostat data, which was written in 2016 by Markus Kainu. It is not too old, but an important function within {eurostat} package became obsolote since then. merge_eurostat_geodata() have been abondoned because of switching to simple features standard. After some searching I found a...
Posted on:
COVID-19 reproducible plots: These plots are based on a modified theme_grey and data are retrieved from ourworldindata.org’s github repo.
Code as a gist:
Posted on:
Weighted survey means: The following simple example will use European Social Survey (ESS) integrated datafile in order to plot unweighted and weighted distribution of the generalized trust variable (ppltrst). Here are the two plots. The underlying codes demonstrate how to use srvyr and dplyr to work together on survey data. R can be...
Posted on:
Barchart race with Flourish: Flourish is a data visualisation site with a free plan that enables you to embbed your chart to your website. The following example shows the number of passanger cars per 1000 inhabitants in selected European countries. Passanger cars: “Road motor vehicle, other than a moped or a motor cycle, intended...
Posted on:
Creating wordcloud in R: I am reading Y. N. Harari’s bestseller book, Sapiens: A Brief History Of Humankind. I will use it’s text to show some basic capacities of R to analyse texts quantitatively. And also wanted to give a try to a color scheme named after the American filmmaker, Wes Anderson. The book...
Posted on: