plot_all | R Documentation |
Plot all given plots in a square matrix form.
plot_all(plots, ncol = NA, max.per.page = NA)
plots |
a list of plots |
ncol |
numeric; the number of column that the arranged grid need to be. defaults to fitting all plots in square matrix |
max.per.page |
numeric; maximum number of plots allowed in one page. |
plots in a given list arrangeed using gridExtra
library(MASS)
data(Cars93)
# a regression with categorical variable
cars_lm <- lm(Price ~ Passengers + Length + RPM + Origin, data = Cars93)
plots <- gg_diagnose(cars_lm, plot.all = FALSE)
names(plots)
selected.plots <- plots[-c(2, 5)]
plot_all(selected.plots)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.