
Last chance! 50% off unlimited learning
Sale ends in
Plot DiffCorr group
plotDiffCorrGroup(
data,
groups1 = NULL,
groups2 = NULL,
group1.no = NULL,
group2.no = NULL,
g1,
g2,
g1.order = NULL,
g2.order = NULL,
title1 = NULL,
title2 = NULL,
...
)
a graph
a data matrix or data frame
a vector of row group membership as produced by cutree under condition 1
a vector of row group membership as produced by cutree under condition 2
the group number to be plotted (condition 1)
the group number to be plotted (condition 2)
a vector describing the columns of the data belonging to condition 1
a vector describing the columns of the data belonging to condition 2
whether or not to order the columns of the data matrix for condition 1. If "average", then the columns are ordered by the average expression value. If the name of a gene (row), then the columns are orderd according to the expression levels of that gene. If NULL, columns remain in their original order.
See g1.order
A title for the left hand graph
A title for the right hand graph
other parameters to be passed to this function
Atsushi Fukushima
library(pcaMethods)
data(golub, package = "multtest")
hc.mol1 <- cluster.molecule(golub[, 1:27], "pearson", "average")
hc.mol2 <- cluster.molecule(golub[, 28:38], "pearson", "average")
g1 <- cutree(hc.mol1, h=0.4)
g2 <- cutree(hc.mol2, h=0.4)
##
plotDiffCorrGroup(golub, g1, g2, 21, 24, 1:27, 28:38,
scale.center=TRUE, scale.scale=TRUE,
ylim=c(-5,5))
Run the code above in your browser using DataLab