plot.StepOne: Plot 'StepOne' objects

View source: R/StepOne.R

plot.StepOneR Documentation

Plot StepOne objects

Description

This function plots the results for Step 1 of the method.

Usage

## S3 method for class 'StepOne'
plot(x, save = FALSE, path = NULL, width = 14, height = 10, ...)

Arguments

x

An object instance of class StepOne.

save

A logical value indicating whether the plot should be saved to a file on disk.

path

A character string representing the path (i.e., including the filename and extension) where the plot should be saved on disk. If NULL, the plot will be saved in the current working directory with a filename generated based on the current system time and a .pdf extension. See ggplot2::ggsave() for supported file types.

width

A single numerical value representing the desired plot width. The default unit is inches (i.e., set by ggplot2::ggsave()), unless overridden by providing the units argument via ....

height

A single numerical value representing the desired plot height. The default unit is inches (i.e., set by ggplot2::ggsave()), unless overridden by providing the units argument via ....

...

Optional arguments to be passed to ggplot2::ggsave().

Value

An ggplot2::ggplot object containing the plot for a StepOne object that can be further modified. The object returned also contains the patchwork class applied.

Example of a plot: Example Step 1

See Also

plot.Method(), summary.Method()


powerly documentation built on Sept. 9, 2022, 5:07 p.m.