PlotPotential: Description: Plot Potential

Description Usage Arguments Details Value Author(s) References Examples

Description

Visualization of the potential function from the movpotential function

Usage

1
2
PlotPotential(res, title = "", xlab.text, ylab.text, cutoff = 0.5,
  plot.contours = TRUE, binwidth = 0.2, bins = NULL)

Arguments

res

output from movpotential function

title

title text

xlab.text

xlab text

ylab.text

ylab text

cutoff

parameter determining the upper limit of potential for visualizations

plot.contours

Plot contour lines.

binwidth

binwidth for contour plot

bins

bins for contour plot. Overrides binwidth if given

Details

Arguments:

Value

ggplot2

potential plotted

Author(s)

Leo Lahti leo.lahti@iki.fi

References

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

Examples

1
2
3
4
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)

earlywarnings documentation built on May 2, 2019, 9:55 a.m.