Learn R Programming

tidypaleo (version 0.1.4)

plot.nested_analysis: Plot a nested analysis

Description

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

Usage

# 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)

Value

the input, invisibly

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

Examples

Run this code
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)

Run the code above in your browser using DataLab