Calls plot or another (base) plotting function on all models, arranging the output in subplots.

# S3 method for nested_analysis
plot(x, ..., main = "", nrow = NULL, ncol = NULL)

plot_nested_analysis(
  .x,
  .fun,
  ...,
  nrow = NULL,
  ncol = NULL,
  .model_column = .data$model,
  .output_column = NULL
)

# S3 method for nested_prcomp
biplot(x, ..., nrow = NULL, ncol = NULL)

Arguments

x, .x

A nested_analysis object (or subclass)

...

Passed to the plot function. Tidy evaluation is supported, and arguments are evaluated within a transposed version of x for each row.

main

The plot title

nrow, ncol

Force a number of rows or columns in the output

.fun

A function that produces graphical output

.model_column

The column containing the model

.output_column

The column in which the output of the plot function should be placed

Value

the input, invisibly

Examples

nd <- nested_data(
  alta_lake_geochem,
  qualifiers = c(age, depth, zone),
  key = param,
  value = value,
  trans = scale
)

na <- nested_analysis(nd, vegan::rda, X = data)
plot(na)