clustPlot: Plot expression profiles

Description Usage Arguments Details References See Also Examples

View source: R/MmPalateMiRNA-functions.R

Description

Produces plots of clustered expression profiles, with seperate plots for each cluster. The average expression profile for each cluster is superimposed as well.

Usage

1
clustPlot(cl, mat, nrow, ncol)

Arguments

cl

integer vector giving the cluster membership for each item

mat

matrix of values to be plotted

nrow

number of rows to use for plotting

ncol

number of columns to use for plotting

Details

The figure region will be subdivided into nrow by ncol separate plots, using mfrow. The average expression profile and the number of genes belonging to each cluster is superimposed on each of the plots.

References

G.N. Brock, V. Pihur, S. Datta, and S. Datta. clValid, an R package for cluster validation. Journal of Statistical Software, 25, 2008.

See Also

See the package vignette for illustration on usage

Examples

1
2
3
4
5
6
## generate some fake data and cluster
set.seed(101)
mat <- matrix(rnorm(500), nrow=100, ncol=5)
clusts <- hclust(dist(mat))
cl <- cutree(clusts, 6)
clustPlot(cl, mat, 3, 2)

MmPalateMiRNA documentation built on April 28, 2020, 7:54 p.m.