1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/featurePlot.R
\name{featurePlot}
\alias{featurePlot}
\title{Wrapper for Lattice Plotting of Predictor Variables}
\usage{
featurePlot(
x,
y,
plot = if (is.factor(y)) "strip" else "scatter",
labels = c("Feature", ""),
...
)
}
\arguments{
\item{x}{a matrix or data frame of continuous feature/probe/spectra data.}
\item{y}{a factor indicating class membership.}
\item{plot}{the type of plot. For classification: \code{box}, \code{strip},
\code{density}, \code{pairs} or \code{ellipse}. For regression,
\code{pairs} or \code{scatter}}
\item{labels}{a bad attempt at pre-defined axis labels}
\item{\dots}{options passed to lattice calls.}
}
\value{
An object of class ``trellis''. The `update' method can be used to
update components of the object and the `print' method (usually called by
default) will plot it on an appropriate plotting device.
}
\description{
A shortcut to produce lattice graphs
}
\details{
This function ``stacks'' data to get it into a form compatible with lattice
and creates the plots
}
\examples{
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")
}
\author{
Max Kuhn
}
\keyword{hplot}
|