plotBioMatrixSampleNames: Label Sample Names on the Top of caOmicsV bioMatrix Layout

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioMatrix.R

Description

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

Usage

1
    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

1
2
3
4
5
6
7
8
    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)

Example output

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

caOmicsV documentation built on Nov. 8, 2020, 8:23 p.m.