
Last chance! 50% off unlimited learning
Sale ends in
Visualization of the potential function from the movpotential function.
PlotPotential(
res,
title = "",
xlab.text,
ylab.text,
cutoff = 0.5,
plot.contours = TRUE,
binwidth = 0.2,
bins = NULL
)
ggplot2 potential plot
output from movpotential function
title text
xlab text
ylab text
parameter determining the upper limit of potential for visualizations
Plot contour lines.
binwidth for contour plot
bins for contour plot. Overrides binwidth if given
Leo Lahti leo.lahti@iki.fi
Dakos, V., et al (2012).'Methods for Detecting Early Warnings of Critical Transitions in Time Series Illustrated Using Simulated Ecological Data.' PLoS ONE 7(7): e41010. doi:10.1371/journal.pone.0041010
X = c(rnorm(1000, mean = 0), rnorm(1000, mean = -2),
rnorm(1000, mean = 2))
param = seq(0,5,length=3000);
res <- movpotential_ews(X, param);
PlotPotential(res$res, title = '',
xlab.text = '', ylab.text = '',
cutoff = 0.5,
plot.contours = TRUE, binwidth = 0.2)
Run the code above in your browser using DataLab