-1

I am currently using R to generate some statistics for a couple hundred time-series from a simulation. I am employing something called the 'earlywarnings' package. The particular function I am using returns various statistics along with their respective plots. However, since I need to check hundreds of these things (in a loop), I'd like to know if there is a way to suppress this function from plotting every time.

I am new to R and I don't know how to see the contents of the package in order to change the code to achieve my goals.

Thank you for your help.

**** Edit *****

I have checked the package's documentation and there's is not mention of an option to stop the function from plotting.

Below is the code needed to run an example. Use any time-series:

generic_ews(mytimeseries, winsize = 25, detrending = c("no", "gaussian",
                                            "loess", "linear", "first-diff"), bandwidth = NULL, span = NULL,
        degree = NULL, logtransform = FALSE, interpolate = FALSE,
        AR_n = FALSE, powerspectrum = FALSE)
Walter U.
  • 331
  • 1
  • 7
  • 18
  • [Please post an MCVE.](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610#5963610) – alistaire Jun 19 '16 at 19:18
  • 1
    does this work http://stackoverflow.com/questions/14725620/open-plots-in-a-null-device – rawr Jun 19 '16 at 19:24

1 Answers1

0

Have a look at the documentation of the package. Search your function and look if there is an option to suppress plots.

Another possibility is to load the *tar.gz file from the CRAN server and open the file/function you use.

J_F
  • 9,956
  • 2
  • 31
  • 55