plot.mscp {mscp}R Documentation

plot.mscp

Description

Plot method for class 'mscp'

Usage

## S3 method for class 'mscp'
plot(x = x, cex = 1, plot.legend = TRUE, ...)

Arguments

x

object of class mscp

cex

numeric, global sizes in plot

plot.legend

logical, if TRUE legends are plotted

...

additional arguments

Value

No return value, called for side effects

Author(s)

Tijana Levajkovic and Michael Messer

References

Multiscale change point detection via gradual bandwidth adjustment in moving sum processes (2021+), Tijana Levajkovic and Michael Messer

See Also

mscp, summary.mscp

Examples

set.seed(1)
Tt <- 1000
cp <- c(250,500,600,650,750)
mu <- c(2,3,6,9,12,15)
sd <- c(1,1,2,1,2,1)
m  <- rep(mu,diff(c(0,cp,Tt))) 
s  <- rep(sd,diff(c(0,cp,Tt)))    
x  <- rnorm(Tt,m,s)
result <- mscp(x,kappa=4.77) # kappa set manually
# result <- mscp(x) # kappa derived in simulations
summary(result)
plot(result)


[Package mscp version 1.0 Index]