Draws vertical lines at changepoint locations. Mimics geom_vline
but designed to work with the tidy changepoint data frames returned by
the package. Can be used as a standalone layer:
geom_changepoint(data = cp_df, aes(xintercept = cp)).
Arguments
- mapping
Set of aesthetic mappings created by
ggplot2::aes(). Requiresxintercept.- data
A data frame with changepoint information.
- ...
Other arguments passed to
geom_vline.- na.rm
If
FALSE, missing values are removed.- show.legend
Whether to show legend.
