Tag Archives: ggplot2

How to install and use the hexSticker package

Intro A couple of days ago, the hexSticker package was published on CRAN. The package provides some functions to plot hexagon stickers that may be used to promote R packages. As described on GitHub, the stickers can be plotted either … Continue reading

Posted in Fav R Packages, Visualizing Data | Tagged | Leave a comment

How to plot a companion planting guide using ggplot2

Intro Recently my girl-friend asked me whether I could do some data project being useful for our family rather than just for myself. A couple of years ago – after our first son was born – we decided to rent … Continue reading

Posted in Visualizing Data | Tagged | 2 Comments

How to plot animated maps with gganimate

Intro Leipzig is the largest city in the federal state of Saxony, Germany. Since about 2009, Leipzig is one of the fastest growing German cities. Between 2006 and 2016, the population has grown from about 506.000 to 580.000 inhabitants.The largest … Continue reading

Posted in Visualizing Data | Tagged , , , , , | Leave a comment

Text mining PubMed using R – a case study

Intro For a couple of years, I've been doing research in the field of psychooncology, which basically is “concerned both with the effects of cancer on a person's psychological health as well as the social and behavioral factors that may … Continue reading

Posted in Bibliometrics, Text Mining | Tagged , , | Leave a comment

How to add a background image to ggplot2 graphs

When producing so called infographics, it is rather common to use images rather than a mere grid as background. In this blog post, I will show how to use a background image with ggplot2. Packages required The following code will … Continue reading

Posted in Visualizing Data | Tagged | Leave a comment

How to combine box and jitter plots using R and ggplot2

R makes it easy to combine different kinds of plots into one overall graph. This may be useful to visualize both basic measures of central tendency (median, quartiles etc.) and the distribution of a certain variable. Moreover, so called cut-off … Continue reading

Posted in Visualizing Data | Tagged | 2 Comments

Auswertung von LEGIDA-Polizeiberichten. Teil II: Worthäufigkeiten

In Teil II meiner Serie über Pressemitteilungen, die von der Polizeidirektion Leipzig anlässlich der Demonstrationen der fremdenfeindlichen LEGIDA-Bewegung veröffentlicht wurden, zeige ich heute, welche Worte in diesen Berichten am häufigsten verwendet werden. ## Warning in readChar(con, 5L, useBytes = TRUE): … Continue reading

Posted in Text Mining, Visualizing Data | Tagged , , | Leave a comment