| plot {crops} | R Documentation |
Visualisation of data, costs, penalty values and changepoint locations.
Description
Plot methods for an S4 object returned by crops. The plot can also be combined with the original data if required.
Usage
## S4 method for signature 'crops.class,data.frame'
plot(x, y)
## S4 method for signature 'crops.class,missing'
plot(x)
Arguments
x |
An instance of an S4 class produced by |
y |
A dataframe containing the locations and values of the data points. The data plot is plotted below, and is aligned with, the changepoint locations. |
Value
A ggplot object. Note - if no changepoints are detected in the penalty interval [beta_min,beta_max], then the value returned is NULL.
See Also
Examples
# see the crops example
# see the crops example
[Package crops version 1.0.3 Index]