library(ggpubr)
ggarrange(
qplot(Month, Ozone, data = aq, geom = "boxplot", color = Month),
qplot(Month, Solar.R, data = aq, geom = "boxplot", color = Month),
qplot(Month, Temp, data = aq, geom = "boxplot", color = Month),
qplot(Month, Wind, data = aq, geom = "boxplot", color = Month),
labels = c("A", "B", "C", "D"), ncol = 2, nrow = 2)
The ggplot()
version is very similarly organized, but the image would be identical for both.
library(ggpubr)
ggarrange( ggplot(data = aq, aes(x = Month, y = Ozone, color = Month)) + geom_boxplot(),
ggplot(data = aq, aes(x = Month, y = Solar.R, color = Month)) + geom_boxplot(),
ggplot(data = aq, aes(x = Month, y = Temp, color = Month)) + geom_boxplot(),
ggplot(data = aq, aes(x = Month, y = Wind, color = Month)) + geom_boxplot(),
labels = c("A", "B", "C", "D"), ncol = 2, nrow = 2)