Learn R Programming

InspectChangepoint (version 1.2)

plot.hdchangeseq: Plot function for 'hdchangeseq' class

Description

Visualising the high-dimensional time series in an 'hdchangeseq' class object. The data matrix or its mean structure is visualised using a grid of coloured rectangles with colours corresponding to the value contained in corresponding coordinates. A heat-spectrum (red to white for values low to high) is used to convert values to colours.

Usage

# S3 method for hdchangeseq
plot(x, noise = TRUE, shuffle = FALSE, ...)

Arguments

x

An object of 'hdchangeseq' class

noise

If noise == TRUE, the data matrix is plotted, otherwise, only the mean structure is plotted.

shuffle

Whether to shuffle the rows of the plotted matrix.

...

Other graphical parameters are not used.

Examples

Run this code
# NOT RUN {
n <- 2000; p <- 200; ks <- 40; zs <- c(500,1000,1500)
varthetas <- c(0.1,0.15,0.2); overlap <- 0.5
obj <- multi.change(n, p, ks, zs, varthetas, overlap)
plot(obj, noise = TRUE)
# }

Run the code above in your browser using DataLab