plot_all: Plot all given plots in a square matrix form.

View source: R/plot_all.R

plot_allR Documentation

Plot all given plots in a square matrix form.

Description

Plot all given plots in a square matrix form.

Usage

plot_all(plots, ncol = NA, max.per.page = NA)

Arguments

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.

Value

plots in a given list arrangeed using gridExtra

Examples

         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)
         

yeukyul/lindia documentation built on Aug. 26, 2023, 1:35 a.m.