plotBioMatrixSampleNames {caOmicsV} | R Documentation

## Label Sample Names on the Top of caOmicsV bioMatrix Layout

### Description

Text plot on the top of phenotype area to show sample names. bioMatrix layout and graphic device must be initialized first.

### Usage

        plotBioMatrixSampleNames(sampleNames, sampleColors)

### Arguments

`sampleNames` | character vector, sample names to be plotted
`sampleColors` | character vector or R color name(s) for text color(s)

### Value

None

### Author(s)

Henry Zhang

### Examples

        initializeBioMatrixPlot(numOfGenes=1, numOfSamples=50)
        setBioMatrixPlotArea()

        sampleNames <- paste("Sample", 1:50)
        sampleColors <- c(rep("red", 30), rep("blue", 30))

        plotBioMatrixSampleData(1, areaName="phenotype", fillColor = sampleColors)
        plotBioMatrixSampleNames(sampleNames, sampleColors)

[Package caOmicsV version 1.16.0 Index]