Learn R Programming

ICtest (version 0.3-5)

plot.ictest: Scatterplot Matrix for a ictest Object

Description

For an object of class ictest, plots either the pairwise scatter plot matrix, or the time series plots of the underlying components. The user can choose if only the components considered interesting or all of them should be plotted.

Usage

# S3 method for ictest
plot(x, which = "all", ...)

Arguments

x

object of class ictest

which

if "all", then all components of S in the ictest object are plotted. If "k", then only the first k components are plotted, where the value of k is taken from the ictest object. This is only meaningful if k was at least 2.

other arguments passed on to pairs if the components are a numeric matrix or to plot.ts, plot.zoo or plot.xts if the components are from the corresponding class.

Details

If the component matrix has the class mts, xts or zoo, then a time series plot will be plotted. Otherwise, the pairwise scatter plot matrix will be plotted.

See Also

ggplot.ictest, pairs, plot.ts, plot.zoo, plot.xts

Examples

Run this code
# NOT RUN {
n <- 200
X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n))

TestCov <- PCAasymp(X, k = 2)
plot(TestCov)
plot(TestCov, which = "k")
# }

Run the code above in your browser using DataLab