Learn R Programming

metaX (version 1.4.0)

plotCorHeatmap: Plot correlation heatmap

Description

This function plots correlation heatmap.

Usage

plotCorHeatmap(para, valueID = "value", samples = NA, label = "order", width = 6, cor.method = "spearman", height = 6, anno = FALSE, cluster = FALSE, shownames = FALSE, ...)

Arguments

para
A metaXpara object
valueID
The name of the column that used for plot
samples
Samples used for plot
label
Label to show in figure
width
The width of the graphics region in inches. The default values are 6.
cor.method
Method used for correlation
height
The height of the graphics region in inches. The default values are 6.
anno
A logical value indicates whether to plot heatmap with annotating class information
cluster
A logical value indicates whether to do the cluster when anno is TRUE
shownames
A logical indicates whether show names when plot
...
Additional parameter

Value

The fig name

Examples

Run this code
para <- new("metaXpara")
pfile <- system.file("extdata/MTBLS79.txt",package = "metaX")
sfile <- system.file("extdata/MTBLS79_sampleList.txt",package = "metaX")
rawPeaks(para) <- read.delim(pfile,check.names = FALSE)
sampleListFile(para) <- sfile
para <- reSetPeaksData(para)
para <- missingValueImpute(para)
plotCorHeatmap(para,valueID="value",samples=NULL,width=6,anno=TRUE)

Run the code above in your browser using DataLab