picketPlot {Heatplus} | R Documentation |
Displays a data frame of both factor and numerical variables in parallel panels. Factors levels are indicated by black rectangles, using dummy variables for more than two levels. Numerical variables are shown as simple index plots with an optional loess smoother. Panels can be arranged horizontally or vertically, and different groups of subjects can be indicated through different background colors.
picketPlot(x, grp = NULL, grpcol, grplabel = NULL, horizontal = TRUE, asIs = FALSE, control = list())
x |
usually a data frame, which is passed to |
grp |
an optional vector of cluster memberships, in the same order as the rows of |
grpcol |
an optional vector of background colors for the clusters specified in |
grplabel |
an optional vector of names for the clusters specified in |
horizontal |
logical value whether to plot variables horizontally (default) or vertically |
asIs |
a logical value indicating whether |
control |
a list of control parameters that determines the appearance of the plot
|
Missing values are indicated by a box marking in nacol
for factor values.
Depending on data and arguments, the value of the last axis
function call. Irrelevant, as this function is called for its side effect of producing a plot.
## Standard call data(mtcars) picketPlot(mtcars) ## Pre-process the data for display mm = convAnnData(mtcars, inclRef=FALSE) picketPlot(mm, asIs=TRUE) ## Higher panels for continous traits picketPlot(mm, asIs=TRUE, control=list(numfac=3)) ## With clusters picketPlot(mtcars, grp = rep(1:2, c(16, 16)), grpcol = c("pink","lightblue"), grplabel=c("Cluster 1", "Cluster 2"))