plotBioMatrixSampleData {caOmicsV} | R Documentation

## Plot Sample Data on caOmicsV bioMatrix Layout

### 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

        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

        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")

[Package caOmicsV version 1.14.0 Index]