Description Usage Arguments Details Value Author(s) See Also Examples
Wrapper for heatmap drawing.
1 2 3 |
thdat |
A numeric data matrix. Samples in rows, features in columns. |
groups |
A character vector with as many elements as |
log |
Boolean. Log the data or not. |
mar |
The margin argument to |
distfun |
Which distance function to use. Default is |
hclustfun |
Which clusterin algorithm. Default is |
cexCol |
Expansion factor for column names. |
cexRow |
Expansion factor for row names. |
Simple heatmap wrapper calling heatmap.2
from the gplots
package internally.
Empty.
Christian Bender (christian.bender@tron-mainz.de)
Help of the gplots
package.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
sample1 <- matrix(rnorm(100, 100, 100), ncol=5)
sample2 <- matrix(rnorm(100, 500, 100), ncol=5)
thdat <- cbind(sample1, sample2)
colnames(thdat) <- c(paste("sample1", 1:5, sep="_"), paste("sample2", 1:5, sep="_"))
rownames(thdat) <- paste("g", 1:nrow(thdat), sep="")
thdat <- t(thdat)
groups <- rep(c("sample1", "sample2"), each=5)
drawheat(thdat, groups = groups, log = FALSE, mar = c(12, 10), distfun = dist.eucsq,
hclustfun = ward, cexCol = 1, cexRow = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.