plot.covQual: Plot for a qualitative input

Description Usage Arguments Details See Also Examples

View source: R/covQual.R

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

1
2
## S4 method for signature '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

1
2
3
4
5
6
7
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)

kergp documentation built on March 18, 2021, 5:06 p.m.