Plot Sample Data on caOmicsV bioMatrix Layout

Share:

Description

Plot colored polygons on phenotype area of caOmicsV bioMatrix layout to show sample information such as diagnosis, tissue type, ... bioMatrix layout and graphic device must be initialized first.

Usage

1
2
    plotBioMatrixSampleData(rowNumber, areaName, fillColor=NA, 
        borderColor=NA, topAdjust=0, bottomAdjust=0)

Arguments

rowNumber

non-negative integer, number of the row where the data to be plotted

areaName

character vector, either "phenotype" or "omicsdata"

fillColor

character vector of color names or vector of R color specification

borderColor

character vector or a R colors specification for boarder color

topAdjust

non-negative numeric, height that will be reduced from top

bottomAdjust

non-negative numeric, height that will be reduced from bottom

Value

None

Author(s)

Henry Zhang

Examples

1
2
3
4
5
    initializeBioMatrixPlot(numOfGenes=1, numOfSamples=50)
    showBioMatrixPlotLayout("Gene", paste("Sample", 1:50),  "Diagnosis")

    sampleColor <- c(rep("blue", 25), rep("red", 25))
    plotBioMatrixSampleData(rowNumber=1, sampleColor, areaName="phenotype") 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.