plotCorHeatmap | R Documentation |
This function plots correlation heatmap.
plotCorHeatmap(para, valueID = "value", samples = NA,
label = "order", width = 6, cor.method = "spearman",
sortBy = "class", colorRange = NULL, height = 6, anno = FALSE,
cluster = FALSE, shownames = FALSE, classCol = NULL, ...)
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 |
sortBy |
Sort the sample name according the this value, default is "class". This is valid when cluster is FALSE. Valid value: class, order, batch. This parameter is useful to sort the sample name according to batch name when users want to check batch effect. |
colorRange |
The color range of heatmap. |
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 |
The fig name
Bo Wen wenbostar@gmail.com
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.