Using iris
dataset for the example here, I have the following grid of graphs from ggpairs()
:
library(GGally)
ggpairs(iris)
I would like to clean this graph up a bit, in particular with some formatting on the axes. I would like to bold the titles (Sepal.Length, Sepal.Width, etc.), and more importantly, I would like to format the units on the axes.
However, for each column / row, I would like to use different unit formatting. (even though it's not a percentage-based stat), for the Sepal.Width column / row, I'd like the units to be percentages. With a normal ggplot() with a continuous variable, I would do scale_x_continuous(labels = scales::percent_format())
, however I'm not quite sure how to selectively apply unit formatting to different rows / columns of the ggpairs() output.
Any help with this is greatly appreciated, thanks!