plotBioMatrixSampleData: Plot Sample Data on caOmicsV bioMatrix Layout

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioMatrix.R

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

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.