Add percentages to your axes in R’s ggplot2 (and set the limits)
Something that took me a while to do properly in ggplot2 is adding the percentage sign as a suffix to your tick labels, controlling decimals and at the same time still being able to set the limits of your axis. I’ll show an example using the iris data set. Let’s…