plot.Method {powerly} | R Documentation |
Plot the results of a sample size analysis
Description
This function plots the results for each step of the method.
Usage
## S3 method for class 'Method'
plot(
x,
step = 3,
last = TRUE,
save = FALSE,
path = NULL,
width = 14,
height = 10,
...
)
Arguments
x |
An object instance of class |
step |
A single positive integer representing the method step that
should be plotted. Possibles values are |
last |
A logical value indicating whether the last iteration of the
method should be plotted. The default is |
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 |
width |
A single numerical value representing the desired plot width.
The default unit is inches (i.e., set by |
height |
A single numerical value representing the desired plot height.
The default unit is inches (i.e., set by |
... |
Optional arguments to be passed to |
Value
An ggplot2::ggplot object containing the plot for the requested step of the method. The plot object returned can be further modified and also contains the patchwork class applied.
Example of a plot for each step of the method: Step 1: Monte Carlo Replications Step 2: Curve Fitting Step 3: Bootstrapping