Description Usage Arguments Details Value Examples
Enhanced heatmap representation with dendrograms and partition given the elbow criterion
or a desired number of clusters.
1) a dendrogram added to the left side and to the top, according to cluster analysis;
2) partitions in highlighted rectangles, according to the "elbow" rule or a desired number of clusters.
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 | heatmap.3(x, diss = inherits(x, "dist"), Rowv = TRUE, Colv = TRUE,
dendrogram = c("both", "row", "column", "none"), dist.row, dist.col,
dist.FUN = gdist, dist.FUN.MoreArgs = list(method = "euclidean"),
hclust.row, hclust.col, hclust.FUN = hclust,
hclust.FUN.MoreArgs = list(method = "ward"), scale = c("none", "row",
"column"), na.rm = TRUE, cluster.by.row = FALSE, cluster.by.col = FALSE,
kr = NA, kc = NA, row.clusters = NA, col.clusters = NA,
revR = FALSE, revC = FALSE, add.expr, breaks, x.center,
color.FUN = gplots::bluered, sepList = list(NULL, NULL),
sep.color = c("gray45", "gray45"), sep.lty = 1, sep.lwd = 2, cellnote,
cex.note = 1, notecol = "cyan", na.color = par("bg"),
trace = c("none", "column", "row", "both"), tracecol = "cyan", hline,
vline, linecol = tracecol, labRow = TRUE, labCol = TRUE,
srtRow = NULL, srtCol = NULL, sideRow = 4, sideCol = 1,
margin.for.labRow, margin.for.labCol, ColIndividualColors,
RowIndividualColors, cexRow, cexCol, labRow.by.group = FALSE,
labCol.by.group = FALSE, key = TRUE, key.title = "Color Key",
key.xlab = "Value", key.ylab = "Count", keysize = 1.5, mapsize = 9,
mapratio = 4/3, sidesize = 3, cex.key.main = 0.75,
cex.key.xlab = 0.75, cex.key.ylab = 0.75, density.info = c("histogram",
"density", "none"), denscol = tracecol, densadj = 0.25,
main = "Heatmap", sub = "", xlab = "", ylab = "", cex.main = 2,
cex.sub = 1.5, font.main = 2, font.sub = 3, adj.main = 0.5,
mgp.main = c(1.5, 0.5, 0), mar.main = 3, mar.sub = 3, if.plot = TRUE,
plot.row.partition = FALSE, plot.col.partition = FALSE,
cex.partition = 1.25, color.partition.box = "gray45",
color.partition.border = "#FFFFFF", plot.row.individuals = FALSE,
plot.col.individuals = FALSE, plot.row.clusters = FALSE,
plot.col.clusters = FALSE, plot.row.clustering = FALSE,
plot.col.clustering = FALSE, plot.row.individuals.list = FALSE,
plot.col.individuals.list = FALSE, plot.row.clusters.list = FALSE,
plot.col.clusters.list = FALSE, plot.row.clustering.list = FALSE,
plot.col.clustering.list = FALSE, row.data = FALSE, col.data = FALSE,
if.plot.info = FALSE, text.box, cex.text = 1, ...)
|
x |
data matrix or data frame, or dissimilarity matrix or ‘dist’ object
determined by the value of the 'diss' argument.
##diss logical flag: if TRUE (default for |
diss |
logical, whether the |
Rowv |
one of the following: TRUE, a ‘dend’ object, a vector or NULL/FALSE; determines if and how the row dendrogram should be reordered. |
Colv |
one of the following: "Rowv", TRUE, a ‘dend’ object, a vector or NULL/FALSE; determines if and how the column dendrogram should be reordered. |
dendrogram |
character string indicating whether to draw 'none', 'row', 'column' or 'both' dendrograms. Defaults to 'both'. |
dist.row |
a |
dist.col |
a |
dist.FUN |
function used to compute the distance (dissimilarity) between
both rows and columns. Defaults to |
dist.FUN.MoreArgs |
a list of other arguments to be passed to |
hclust.row |
a |
hclust.col |
a |
hclust.FUN |
function used to compute the hierarchical clustering when
"Rowv" or "Colv" are not dendrograms. Defaults to |
hclust.FUN.MoreArgs |
a list of other arguments to be passed to |
scale |
character indicating if the values should be centered and scaled in either the row direction
or the column direction, or none. The default is |
na.rm |
logical, whether NA values will be removed when scaling. |
cluster.by.row |
logical, whether to cluster row observations and reorder the input accordingly. |
cluster.by.col |
logical, whether to cluster column observations and reorder the input accordingly. |
kr |
numeric, number of clusters in rows; suppressed when |
kc |
numeric, number of clusters in columns; suppressed when |
row.clusters |
a numerical vector, indicating the cluster labels of row observations. |
col.clusters |
a numerical vector, indicating the cluster labels of column observations. |
revR |
logical indicating if the row order should be 'rev'ersed for plotting. |
revC |
logical indicating if the column order should be 'rev'ersed for plotting, such that e.g., for the symmetric case, the symmetry axis is as usual. |
add.expr |
expression that will be evaluated after the call to |
breaks |
numeric, either a numeric vector indicating the splitting
points for binning |
x.center |
numeric, a value of |
color.FUN |
function or function name in characters, for colors in the heatmap |
sepList |
a |
sep.color |
color for lines of separation. |
sep.lty |
line type for lines of separation. |
sep.lwd |
line width for lines of separation. |
cellnote |
(optional) matrix of character strings which will be placed within each color cell, e.g. cell labels or p-value symbols. |
cex.note |
relative font size of |
notecol |
color of |
na.color |
Color to use for missing value ( |
trace |
character string indicating whether a solid "trace" line should be drawn across
|
tracecol |
character string giving the color for "trace" line. Defaults to "cyan"; |
hline |
Vector of values within cells where a horizontal dotted line should be drawn. only plotted if 'trace' is 'row' or 'both'. Default to the median of the breaks. |
vline |
Vector of values within cells where a vertical dotted line should be drawn;
only drawn if 'trace' 'column' or 'both'. |
linecol |
the color of |
labRow |
character vectors with row labels to use; defaults to |
labCol |
character vectors with column labels to use; defaults to |
srtRow |
numerical, specifying (in degrees) how row labels should be rotated.
See |
srtCol |
numerical, specifying (in degrees) how col labels should be rotated.
See |
sideRow |
2 or 4, which side row labels display. |
sideCol |
1 or 3, which side row labels display. |
margin.for.labRow |
a numerical value gives the margin to plot |
margin.for.labCol |
a numerical value gives the margin to plot |
ColIndividualColors |
(optional) character vector of length |
RowIndividualColors |
(optional) character vector of length |
cexRow |
positive numbers, used as 'cex.axis' in for column axis labeling. The default currently only uses number of columns. |
cexCol |
positive numbers, used as 'cex.axis' in for the row axis labeling. The default currently only uses number of rows. |
labRow.by.group |
logical, whether group unique labels for rows. |
labCol.by.group |
logical, whether group unique labels for columns. |
key |
logical indicating whether a color-key should be shown. |
key.title |
character, title of the color-key ["Color Key"] |
key.xlab |
character, xlab of the color-key ["Value"] |
key.ylab |
character, ylab of the color-key ["Count"] |
keysize |
numeric value indicating the relative size of the key |
mapsize |
numeric value indicating the relative size of the heatmap. |
mapratio |
the width-to-height ratio of the heatmap. |
sidesize |
numeric value indicating the relative size of the sidebars. |
cex.key.main |
a numerical value giving the amount by which |
cex.key.xlab |
a numerical value giving the amount by which |
cex.key.ylab |
a numerical value giving the amount by which |
density.info |
character string indicating whether to superimpose a 'histogram', a 'density' plot, or no plot ('none') on the color-key. |
denscol |
character string giving the color for the density display specified by 'density.info', defaults to the same value as 'tracecol'. |
densadj |
Numeric scaling value for tuning the kernel width when a density plot is drawn on the color key. (See the 'adjust' parameter for the 'density' function for details.) Defaults to 0.25. |
main |
an overall title for the plot. See |
sub |
a subtitle for the plot, describing the distance and/or alignment gap (the "shift"). |
xlab |
a title for the x axis. See |
ylab |
a title for the y axis. See |
cex.main |
a numerical value giving the amount by which |
cex.sub |
a numerical value giving the amount by which |
font.main |
An integer which specifies which font to use for |
font.sub |
An integer which specifies which font to use for |
adj.main |
The value of 'adj' determines the way in which |
mgp.main |
the margin line (in 'mex' units) for the |
mar.main |
a numerical vector of the form |
mar.sub |
a numerical vector of the form |
if.plot |
logical, whether to plot. Reordered matrix is returned without graphical output if FALSE. |
plot.row.partition |
logical, whether to plot row partition. |
plot.col.partition |
logical, whether to plot column partition. |
cex.partition |
a numerical value giving the amount by which |
color.partition.box |
color for the |
color.partition.border |
color for the |
plot.row.individuals |
logical, whether to make a plot of row observations. |
plot.col.individuals |
logical, whether to make a plot of column observations. |
plot.row.clusters |
logical, whether to make a summary plot of row clusters. |
plot.col.clusters |
logical, whether to make a summary plot of column clusters. |
plot.row.clustering |
logical, whether to make a summary plot of overall row clustering. |
plot.col.clustering |
logical, whether to make a summary plot of overall column clustering. |
plot.row.individuals.list |
a list of expressions that is used to |
plot.col.individuals.list |
a list of expressions that is used to |
plot.row.clusters.list |
a list of expressions that is used to |
plot.col.clusters.list |
a list of expressions that is used to |
plot.row.clustering.list |
a list of expressions that is used to |
plot.col.clustering.list |
a list of expressions that is used to |
row.data |
(optional) data used to |
col.data |
(optional) data used to |
if.plot.info |
logical, whether to plot |
text.box |
character plotted when |
cex.text |
a numerical value giving the amount by which |
... |
arguments to be passed to method |
Enhanced heatmap representation with partition and summary statistics (optional).
This is an enhanced version of ‘heatmap.2’ function in the Package gplots. The enhancement includes:
1) Improved performance with optional input of precomputed dist
object
and hclust
object.
2) Highlight of specific cells using rectangles. For instance, the cells of clusters of interests.
(Examples should be included in future.)
3) Add-on plots in addition to the heatmap, such as cluster-wise summary plots and
overall clustering summary plots, to the right of or under the heatmap.
A reordered matrix according to row or/and col dendrogram(s) and indices that used for reordering.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | ## ------------------------------------------------------------------------
## Example1: mtcars
## ------------------------------------------------------------------------
## load library
require("GMD")
## load data
data(mtcars)
## heatmap on raw data
x <- as.matrix(mtcars)
dev.new(width=10,height=8)
heatmap.3(x) # default, with reordering and dendrogram
## Not run:
heatmap.3(x, Rowv=FALSE, Colv=FALSE) # no reordering and no dendrogram
heatmap.3(x, dendrogram="none") # reordering without dendrogram
heatmap.3(x, dendrogram="row") # row dendrogram with row (and col) reordering
heatmap.3(x, dendrogram="row", Colv=FALSE) # row dendrogram with only row reordering
heatmap.3(x, dendrogram="col") # col dendrogram
heatmap.3(x, dendrogram="col", Rowv=FALSE) # col dendrogram with only col reordering
heatmapOut <-
heatmap.3(x, scale="column") # sacled by column
names(heatmapOut) # view the list that is returned
heatmap.3(x, scale="column", x.center=0) # colors centered around 0
heatmap.3(x, scale="column",trace="column") # trun "trace" on
## End(Not run)
## coloring cars (row observations) by brand
brands <- sapply(rownames(x), function(e) strsplit(e," ")[[1]][1])
names(brands) <- c()
brands.index <- as.numeric(as.factor(brands))
RowIndividualColors <- rainbow(max(brands.index))[brands.index]
heatmap.3(x, scale="column", RowIndividualColors=RowIndividualColors)
## coloring attributes (column features) randomly (just for a test :)
heatmap.3(x, scale="column", ColIndividualColors=rainbow(ncol(x)))
## add a single plot for all row individuals
dev.new(width=12,height=8)
expr1 <- list(quote(plot(row.data[rowInd,"hp"],1:nrow(row.data),
xlab="hp",ylab="",yaxt="n",main="Gross horsepower")),
quote(axis(2,1:nrow(row.data),rownames(row.data)[rowInd],las=2)))
heatmap.3(x, scale="column", plot.row.individuals=TRUE, row.data=x,
plot.row.individuals.list=list(expr1))
## ------------------------------------------------------------------------
## Example2: ruspini
## ------------------------------------------------------------------------
## load library
require("GMD")
require(cluster)
## load data
data(ruspini)
## heatmap on a `dist' object
x <- gdist(ruspini)
main <- "Heatmap of Ruspini data"
dev.new(width=10,height=10)
heatmap.3(x, main=main, mapratio=1) # with a title and a map in square!
## Not run:
heatmap.3(x, main=main, revC=TRUE) # reverse column for a symmetric look
heatmap.3(x, main=main, kr=2, kc=2) # partition by predefined number of clusters
## End(Not run)
## show partition by elbow
css.multi.obj <- css.hclust(x,hclust(x))
elbow.obj <- elbow.batch(css.multi.obj,ev.thres=0.90,inc.thres=0.05)
heatmap.3(x, main=main, revC=TRUE, kr=elbow.obj$k, kc=elbow.obj$k)
## Not run:
## show elbow info as subtitle
heatmap.3(x, main=main, sub=sub("\n"," ",attr(elbow.obj,"description")),
cex.sub=1.25,revC=TRUE,kr=elbow.obj$k, kc=elbow.obj$k)
## End(Not run)
|
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, Rowv = FALSE, Colv = FALSE) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, Rowv = FALSE, Colv = FALSE) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, Rowv = FALSE, Colv = FALSE) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, Rowv = FALSE, Colv = FALSE) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning message:
In heatmap.3(x, dendrogram = "none") :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, dendrogram = "row") :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, dendrogram = "row") :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
3: In heatmap.3(x, dendrogram = "row") :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, dendrogram = "row", Colv = FALSE) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, dendrogram = "row", Colv = FALSE) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning message:
In heatmap.3(x, dendrogram = "col") :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: none
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning message:
In heatmap.3(x, dendrogram = "col", Rowv = FALSE) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column") :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column") :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column") :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column") :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
[1] "x.ori" "x" "rowInd" "colInd" "row.clusters"
[6] "col.clusters" "dist.row" "dist.col" "hclust.row" "hclust.col"
[11] "kr" "kc"
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column", x.center = 0) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column", x.center = 0) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column", x.center = 0) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column", x.center = 0) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column", trace = "column") :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column", trace = "column") :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column", trace = "column") :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column", trace = "column") :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column", RowIndividualColors = RowIndividualColors) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column", RowIndividualColors = RowIndividualColors) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column", RowIndividualColors = RowIndividualColors) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column", RowIndividualColors = RowIndividualColors) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column", ColIndividualColors = rainbow(ncol(x))) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column", ColIndividualColors = rainbow(ncol(x))) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column", ColIndividualColors = rainbow(ncol(x))) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column", ColIndividualColors = rainbow(ncol(x))) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
dev.new(): using pdf(file="Rplots1.pdf")
1.dim(x): 32 11
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 32 11
Scaling ... 3.dim(x): 32 11
Making color breaks ... 4.dim(x): 32 11
[1] "kr=2,kc=2"
5.dim(x): 32 11
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 32 11
5c.dim(x): 32 11
scale: column
5d.dim(x): 11 32
6.dim(x): 11 32
7.dim(x): 11 32
8.dim(x): 11 32
DONE!
Warning messages:
1: In heatmap.3(x, scale = "column", plot.row.individuals = TRUE, row.data = x, :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, scale = "column", plot.row.individuals = TRUE, row.data = x, :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, scale = "column", plot.row.individuals = TRUE, row.data = x, :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, scale = "column", plot.row.individuals = TRUE, row.data = x, :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
Loading required package: cluster
dev.new(): using pdf(file="Rplots2.pdf")
1.dim(x): 75 75
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 75 75
Scaling ... 3.dim(x): 75 75
Making color breaks ... 4.dim(x): 75 75
[1] "kr=2,kc=2"
5.dim(x): 75 75
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 75 75
5c.dim(x): 75 75
scale: none
5d.dim(x): 75 75
6.dim(x): 75 75
7.dim(x): 75 75
8.dim(x): 75 75
DONE!
Warning messages:
1: In heatmap.3(x, main = main, mapratio = 1) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, main = main, mapratio = 1) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, main = main, mapratio = 1) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, main = main, mapratio = 1) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 75 75
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 75 75
Scaling ... 3.dim(x): 75 75
Making color breaks ... 4.dim(x): 75 75
[1] "kr=2,kc=2"
5.dim(x): 75 75
Plotting ... revC: TRUE , revR: FALSE
5b.dim(x): 75 75
5c.dim(x): 75 75
scale: none
5d.dim(x): 75 75
6.dim(x): 75 75
7.dim(x): 75 75
8.dim(x): 75 75
DONE!
Warning messages:
1: In heatmap.3(x, main = main, revC = TRUE) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, main = main, revC = TRUE) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, main = main, revC = TRUE) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, main = main, revC = TRUE) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
1.dim(x): 75 75
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 75 75
Scaling ... 3.dim(x): 75 75
Making color breaks ... 4.dim(x): 75 75
[1] "kr=2,kc=2"
5.dim(x): 75 75
Plotting ... revC: FALSE , revR: FALSE
5b.dim(x): 75 75
5c.dim(x): 75 75
scale: none
5d.dim(x): 75 75
6.dim(x): 75 75
7.dim(x): 75 75
8.dim(x): 75 75
DONE!
Warning messages:
1: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
5: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: kr is set, therefore plot.row.partition is set to `TRUE'.
6: In heatmap.3(x, main = main, kr = 2, kc = 2) :
Discrepancy: kc is set, therefore plot.col.partition is set to `TRUE'.
1.dim(x): 75 75
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 75 75
Scaling ... 3.dim(x): 75 75
Making color breaks ... 4.dim(x): 75 75
[1] "kr=4,kc=4"
5.dim(x): 75 75
Plotting ... revC: TRUE , revR: FALSE
5b.dim(x): 75 75
5c.dim(x): 75 75
scale: none
5d.dim(x): 75 75
6.dim(x): 75 75
7.dim(x): 75 75
8.dim(x): 75 75
DONE!
Warning messages:
1: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
5: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: kr is set, therefore plot.row.partition is set to `TRUE'.
6: In heatmap.3(x, main = main, revC = TRUE, kr = elbow.obj$k, kc = elbow.obj$k) :
Discrepancy: kc is set, therefore plot.col.partition is set to `TRUE'.
1.dim(x): 75 75
Preparing `hclust'... The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Preparing `dendrogram'... Reordering ... 2.dim(x): 75 75
Scaling ... 3.dim(x): 75 75
Making color breaks ... 4.dim(x): 75 75
[1] "kr=4,kc=4"
5.dim(x): 75 75
Plotting ... revC: TRUE , revR: FALSE
5b.dim(x): 75 75
5c.dim(x): 75 75
scale: none
5d.dim(x): 75 75
6.dim(x): 75 75
7.dim(x): 75 75
8.dim(x): 75 75
DONE!
Warning messages:
1: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: row dendrogram is asked; Rowv is set to `TRUE'.
2: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: col dendrogram is asked; Colv is set to `TRUE'.
3: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: row dendrogram is asked; cluster.by.row is set to `TRUE'.
4: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: col dendrogram is asked; cluster.by.col is set to `TRUE'.
5: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: kr is set, therefore plot.row.partition is set to `TRUE'.
6: In heatmap.3(x, main = main, sub = sub("\n", " ", attr(elbow.obj, :
Discrepancy: kc is set, therefore plot.col.partition is set to `TRUE'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.