Learn R Programming

msmsEDA (version 1.10.0)

counts.heatmap: Heatmap of an spectral counts matrix.

Description

Heatmap showing the clustering of proteins and samples in a matrix of spectral counts

Usage

counts.heatmap(msnset,etit=NULL,fac=NULL,to.pdf=FALSE)

Arguments

msnset
A MSnSet with spectral counts in the expression matrix.
etit
The root name of the pdf file names where the heatmaps are sent.
fac
A factor which is used for the column color bar.
to.pdf
A logical indicating whether the heatmaps are sent to a pdf file.

Value

No value is returned

Details

A heatmap of the msnset expression matrix is plot. If to.pdf is TRUE two heatmaps are plot, the first is fitted on an A4 page, the second is plotted with 3mm by row, allocating enough height to make the rownames readable. If fac is not NULL then a column color bar will show the levels of the factor. If to.pdf is TRUE the heatmaps are sent to pdf files whose names are the concatenation of etit and "-HeatMap.pdf" and "-FullHeatMap.pdf", otherwise etit has no effect.

See Also

MSnSet, heatmap and heatmap.2

Examples

Run this code
data(msms.dataset)
msnset <- pp.msms.data(msms.dataset)
counts.heatmap(msnset,fac = pData(msnset)$treat)

Run the code above in your browser using DataLab