Hi @user124578,
Personally, I recommend using ggplot2
for your graphing purposes. Another package named ggforce
has provided a extra ggplot2
functionality that does precisely what you are looking for (and a whole lot more). Try this out and let me know what you think:
library(ggplot2)
library(ggforce)
airquality %>%
ggplot() +
geom_point(aes(x = .panel_x, y = .panel_y)) +
facet_matrix(vars(everything()))
Basically you can replace everything()
with the specific variables you want to plot if you do not want all of them plotted at once.