Plot Method Results

Description

The plot.Method S3 methodopen in new window plot the results for each step of the method.

Usage

plot(
    x,
    step = 3,
    last = TRUE,
    save = FALSE,
    path = NULL,
    width = 14,
    height = 10,
    ...
)

Arguments

NameDescription
xAn object instance of class Method produced by the function powerly.
stepA single positive integer representing the method step that should be plotted. Possibles values are 1 for the first step, 2 for the second step, and 3 for the third step of the method.
lastA logical value indicating whether the last iteration of the method should be plotted. The default is TRUE, indicating that the last iteration should be plotted.
saveA logical value indicating whether the plot should be saved to a file on disk.
pathA 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::ggsaveopen in new window for supported file types.
widthA single numerical value representing the desired plot width. The default unit is inches (i.e., set by ggplot2::ggsaveopen in new window), unless overridden by providing the units argument via ....
heightA single numerical value representing the desired plot height. The default unit is inches (i.e., set by ggplot2::ggsaveopen in new window), unless overridden by providing the units argument via ....
...Optional arguments to be passed to the ggplot2::ggsaveopen in new window function.

Return

An ggplot2::ggplotopen in new window object containing the plot for the requested step of the method. The plot object returned can be further modified and also contains the patchworkopen in new window class applied. Example plots for each step of the method are shown below.

Step 1: Monte Carlo Replications

Example of powerly output for Step 1

Step 2: Curve Fitting

Example of powerly output for Step 2

Step 3: Bootstrapping

Example of powerly output for Step 3

See Also

S3 method summary and function powerly.