Description Usage Arguments Details Value Author(s) Examples
Draw legend including of heatmap color scale and data categories. Graphic device must be initialized first.
1 2 | bioMatrixLegend(heatmapNames=NULL, categoryNames=NULL, binaryNames=NULL,
heatmapMin=-3, heatmapMax=3, colorType="BlueWhiteRed")
|
heatmapNames |
character vector of length 2, name(s) of dataset for heatmap, e.g., "RNASeq" and/or "miRNASeq" |
categoryNames |
character vector of length 2 or more, names of categories, e.g., "Methylation High", "Methylation Low", ... |
binaryNames |
character vector of length 2 , names of binary data, e.g., "DNA Amplification" and "DNA Deletion". |
heatmapMin |
numeric, minimum values of heatmap plot data, default -3 (z-scores) |
heatmapMax |
numeric, maximum values of heatmap plot data, default 3 (z-scores) |
colorType |
characte veector, one of "BlueWhiteRed", "GreenWhiteRed", "GreenYellowRed", "GreenBlackRed" , or "YellowToRed" |
This function will plot legend on the bottom of matrix layout if any argument is defined. The order of legend items (from left to right) is heatmap color scale followed by colored boxes for category data legend then colored points for binary data legend.
None
Henry Zhang
1 2 3 4 5 6 | data(biomatrixPlotDemoData)
plotBioMatrix(biomatrixPlotDemoData, summaryType="text")
bioMatrixLegend(heatmapNames=c("RNASeq", "miRNASeq"),
categoryNames=c("Methyl H", "Methyl L"),
binaryNames=c("CN LOSS", "CN Gain"),
colorType="BlueWhiteRed")
|
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Loading required package: bc3net
Loading required package: c3net
Loading required package: infotheo
Loading required package: Matrix
Loading required package: lattice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.