A Blog about Data Analysis and Visualization Using R
A collection of lua filters
The ggarrow package allows any polygon to be an arrowhead.
Importing latex into ggplot2
How to make the output of a knitr code chunk collapsible using knitr hooks.
For long text labels on the y-axis, splitting them into roughly equal segments can look better.
A function for retrieving a div or span from another markdown document
The geom_text and geom_label functions do not specifiy text size the same way as the rest of ggplot2 elements do. For consistent text sizes, we can apply a simple conversion.
Placing stacked bar chart labels on a smooth path makes them easier to compare.
How to place legible labels for points on a curve in ggplot2
You can put the caption on the line as the x-axis title
The paste and paste0 functions have a recycle0 argument that returns an empty vector when any part of the string is empty.