Here are ten R functions that have saved me a lot of time over the years. 1. forcats::fct_reorder() The forcats package has a lot of great functions. The one I use the most is the fct_reorder() function. I have also seen David Robinson using it a lot in his YouTube videos (I recommend his videos […]
Tag: ggplot2
How to improve your figures #2: Don’t show overlapping text labels
I was reading this study on the impact of Weberian bureaucracy on economic growth published in Comparative Political Studies. It’s a great article and I can highly recommend reading it. I like that the study presents most of the results in figures. In fact, there are more figures than tables in the article. However, a […]
Figurer i ‘Ekspertrapport af den 6. maj 2020’
Onsdag gik samtlige danske medier i ‘breaking mode’ på baggrund af en ny rapport fra Statens Serum Institut. Rapporten bærer titlen ‘Ekspertrapport af den 6. maj 2020: Matematisk modellering af COVID-19 smittespredning og sygehusbelastning ved scenarier for anden fase af genåbningen af Danmark’ og kan findes her. Jeg har ingen nævneværdige holdninger til selve indholdet […]
New resource: awesome-ggplot2
I use ggplot2 every day. It is a great R package and the best tool available to make beautiful data visualisations. The logic of grammar of graphics makes it easy to learn as well as making it possible for you to gradually improve your plots. Luckily, there are a lot of resources available for the […]