I am using facet_wrap to split my scatter plot as
facet_wrap(x~y+z)
This generates 22 plots in my case as desired. However, label for each of those 22 plots is displayed in 3 rows (x, y and z) which unnecessarily consumes the space in the window and squishes the plots into a small area. I would rather want my plots to be bigger in size. Since variables y and z are short, I would like to display them in same row instead of two.
I looked into the labeller options but none of them seem to do what I would want. I would appreciate any suggestions here.
In this case you might also consider label_wrap_gen()
:
p <- ggplot(mtcars, aes(wt,mpg)) + geom_point()
p + facet_wrap(cyl~am+vs, labeller = label_wrap_gen(multi_line=FALSE))