Description Usage Arguments Value Author(s) Examples
View source: R/caOmicsV.bioMatrix.R
Plot binary data as points in the inside of each rectangle(sample). This function plot all rows on omics data area and only the positive samples will be shown with colored points. For one row plot, pass data as vector and supply correct skipPlotRow parameter to define where to plot. bioMatrix layout and graphic device must be initialized first.
1 2 3 | plotBioMatrixBinaryData(binaryData, areaName="omicsData", scatterType=19,
scatterSize=1, totalSubRow=1, subRowIndex=1, sampleColor="black",
skipPlotRow=0)
|
binaryData |
vector or matrix with values of 0 and 1 only |
areaName |
character vector, either "omicsData" or "phenotype" |
scatterType |
non-negative integer, same as pch, default 19 |
scatterSize |
non-negative numeric, same as cex |
totalSubRow |
non-negative integer, how many sub-rows in a sample area |
subRowIndex |
non-negative integer, which subrow will be plotted |
sampleColor |
character vector for color name(s) or R color specification |
skipPlotRow |
non-negative integer, total rows on plot area that should be skipped, default 0 |
None
Henry Zhang
1 2 3 4 5 | initializeBioMatrixPlot(numOfGenes=1, numOfSamples=50)
showBioMatrixPlotLayout("Gene", paste("Sample", 1:50), "Diagnosis")
binaryData <- matrix(c(rep(1, 15), rep(0, 20), rep(1, 15)), nrow=1)
plotBioMatrixBinaryData(binaryData, scatterType=16)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.