
featurePlot(x, y,
plot = if(is.factor(y)) "strip" else "scatter",
labels = c("Feature", ""),
...)
box
, strip
, density
, pairs
or ellipse
.
For regression, pairs
or scatter
x <- matrix(rnorm(50*5),ncol=5)
y <- factor(rep(c("A", "B"), 25))
trellis.par.set(theme = col.whitebg(), warn = FALSE)
featurePlot(x, y, "ellipse")
featurePlot(x, y, "strip", jitter = TRUE)
featurePlot(x, y, "box")
featurePlot(x, y, "pairs")
Run the code above in your browser using DataLab