Nothing
install.packages("earlywarnings")
library(devtools) install_github("earlywarningtoolbox/earlywarnings-R/earlywarnings")
Run on command line:
git clone git@github.com:earlywarningtoolbox/earlywarnings-R.git
./build.sh
library(earlywarnings)
Potential analysis, used for instance in [Hirota et al. Science, 2011, 334, 232-235.]
# Create simulated example data X <- c(rnorm(1000, mean = 0), rnorm(1000, mean = -2), rnorm(1000, mean = 2)) param <- seq(0,5,length=3000) # Run potential analysis res <- movpotential_ews(X, param) # Visualize p <- PlotPotential(res$res, title = '', xlab.text = '', ylab.text = '', cutoff = 0.5, plot.contours = TRUE, binwidth = 0.2) print(p)
This work can be freely used, modified and distributed under the Two-clause (Free)BSD license.
Kindly cite the work as 'Vasilis Dakos and Leo Lahti (2014). earlywarnings R package. URL: https://github.com/earlywarningtoolbox/earlywarnings-R'.
citation("earlywarnings")
This vignette was created with
sessionInfo()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.