drawheat: Wrapper for heatmap drawing.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Wrapper for heatmap drawing.

Usage

1
2
3
drawheat(thdat, groups = NULL, log = FALSE,
			mar = c(12, 10), distfun = dist.eucsq,
			hclustfun = ward, cexCol = 1, cexRow = 1)

Arguments

thdat

A numeric data matrix. Samples in rows, features in columns.

groups

A character vector with as many elements as thdat has rows, i.e. samples, assigning a group to each sample.

log

Boolean. Log the data or not.

mar

The margin argument to heatmap.2 function. Vector of numeric, specifying the bottom and left margins, respectively.

distfun

Which distance function to use. Default is dist.eucsq.

hclustfun

Which clusterin algorithm. Default is ward.

cexCol

Expansion factor for column names.

cexRow

Expansion factor for row names.

Details

Simple heatmap wrapper calling heatmap.2 from the gplots package internally.

Value

Empty.

Author(s)

Christian Bender (christian.bender@tron-mainz.de)

See Also

Help of the gplots package.

Examples

 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)

bootfs documentation built on May 2, 2019, 5:50 p.m.