plot.covQual: Plot for a qualitative input

View source: R/covQual.R

plotR Documentation

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 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

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 May 29, 2024, 10:25 a.m.