R/plot.interv_detect.R

Defines functions plot.interv_detect

Documented in plot.interv_detect

plot.interv_detect <- function(x, ...){
  main <- "Test statistic over time"
  timser <- x$fit_H0$ts
  if(is.ts(timser)){
    plot(x=time(timser)[as.numeric(names(x$test_statistic_tau))], y=x$test_statistic_tau, main=main, xlab="Time", ylab="Test statistic", type ="o", ...)
  }else{
    plot(x=as.numeric(names(x$test_statistic_tau)), y=x$test_statistic_tau, main=main, xlab="Time", ylab="Test statistic", type="o", ...)
  }
  invisible()
}

Try the tscount package in your browser

Any scripts or data that you put into this service are public.

tscount documentation built on Sept. 8, 2020, 9:08 a.m.