Learn R Programming

robcp (version 0.3.8)

plot.cpStat: Plot method for change point statistics

Description

Plots the trajectory of the test statistic process together with a red line indicating the critical value (alpha = 0.05) and a blue line indicating the most probable change point location

Usage

# S3 method for cpStat
plot(x, ylim, xaxt, crit.val, ...)

Value

No return value; called for side effects.

Arguments

x

object of the class 'cpStat'.

ylim

the y limits of the plot.

xaxt

a character which specifies the x axis type (see par).

crit.val

critical value of the test. Default: 1.358.

...

other graphical parameters (see par).

Author

Sheila Görz

Details

  • Default for ylim is c(min(c(data, 1.358)), max(c(data, 1.358))).

  • Default for xaxt is the simliar to the option "s", only that there is a red labelled tick at the most probable change point location. Ticks too close to this will be suppressed.

See Also

plot, par, CUSUM, HodgesLehmann, wilcox_stat