powered by
Plot cluster molecules
plotClusterMolecules( data, groups = NULL, group.no = NULL, title = NULL, ylim = NULL, order = NULL, scale.center = FALSE, scale.scale = FALSE, frame = "white", col = NULL, bottom.mar = 5, xlab = "Samples", ylab = "Relative abundance" )
a graph
data matrix or data frame
a vector of group memberships as returned by cutree
the group number to be plotted
a title for the graph
a vector indicating the upper and lower limit for the y-axis
whether or not to order the columns of the data matrix
unless NULL, each row is scaled using scale
unless NULL, each row is scaled using scale.
the color of the frame that is drawn as the background of the plot
If NULL, all genes will be drawn in the default color (blue). If the text "random" is given, then a set of colors will be generated by
The size of the bottom margin of the plots as sent in par(mar=c(...))
a lalel of x axis (defalt: "Samples")
a lalel of y axis (defalt: "Relative abundance")
Atsushi Fukushima
this function was originally from Watson M (2005) BMC Bioinformatics 7:509
library(pcaMethods) data(golub, package = "multtest") hc.mol1 <- cluster.molecule(golub[, 1:27], "pearson", "average") g1 <- cutree(hc.mol1, h=0.4) plotClusterMolecules(golub[,1:27], g1, 3)
Run the code above in your browser using DataLab