When plotting internal axisLabels
for ggpairs
, if numbers are large, they get cropped off.
fakedata <- data.frame(Var1=rnorm(500, 3, 6),
Var2=runif(500, 0, 5500),
Var3=rpois(500, 6),
Var4=rpois(500, 1500),
Var5=runif(500, 1, 60))
ggpairs(fakedata, axisLabels= "internal")
In the graph above, the y-axis labels for Var2 are cut off, and the x-axis numbers for Var4 run together. How would I change the font size?
I've seen from this page that it may be possible to find a fix by adding theme()
from ggplot2
, but I can't find a theme element that would represent font size for axis text.