plot.jcp: plot.jcp

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/plot.jcp.r

Description

Plot method for class 'jcp'

Usage

1
2
## S3 method for class 'jcp'
plot(x, cex = 1, cex.main = 1, ...)

Arguments

x

object of class jcp

cex

numeric, global sizes in plot

cex.main

numeric, size of titles

...

additional arguments

Value

No return value, called for side effects

Author(s)

Michael Messer

References

Michael Messer (2021) Bivariate change point detection - joint detection of changes in expectation and variance, Scandinavian Journal of Statistics, DOI 10.1111/sjos.12547.

See Also

jcp, summary.jcp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Normal distributed sequence with 3 change points at
# c1=250 (change in expectation), 
# c2=500 (change in variance) and 
# c3=750 (change in expectation and variance) 
set.seed(0)
m      <- c(8,10,10,3);   s  <- c(4,4,10,5)
x      <- rnorm(1000, mean=rep(m,each=250), sd=rep(s,each=250))
result <- jcp(x)
summary(result)
plot(result)

# Set additional parameters (window set)
result2 <- jcp(x,H=c(80,160,240))
summary(result2)
plot(result2)

jcp documentation built on Nov. 6, 2021, 5:08 p.m.

Related to plot.jcp in jcp...