Learn R Programming

kergp (version 0.5.7)

plot: Plot for a qualitative input

Description

Plots of the covariance matrix or the correlation matrix of a qualitative input. For an ordinal factor, the warping function can also be plotted.

Usage

# S4 method for covQual
plot(x, y, type = c("cov", "cor", "warping"), ...)

Arguments

x

An object of class covQual-class.

y

Not used.

type

A character indicating the desired type of plot. Type warping only works for an ordinal input.

...

Other arguments passed to corrplot::corrplot or plot.

Details

Covariance / correlation plots are done with package corrplot if loaded, or lattice else.

See Also

covOrd.

Examples

Run this code
u <- ordered(1:6, levels = letters[1:6])

myCov2 <- covOrd(ordered = u, k1Fun1 = k1Fun1Cos, warpFun = "norm")
coef(myCov2) <- c(mean = 0.5, sd = 0.05, theta = 0.1) 

plot(myCov2, type = "cor", method = "ellipse")
plot(myCov2, type = "warp", col = "blue", lwd = 2)

Run the code above in your browser using DataLab