plotBioMatrixBars: Bar Plot on caOmicsV bioMatrix Layout

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioMatrix.R

Description

Bar plot method for caOmicsV bioMatrix layout with non-negative numeric matrix or vector with values in range of 0 ~ 1. bioMatrix layout and graphic device must be initialized first.

Usage

1
2
    plotBioMatrixBars(barData, barColor="red", areaName="omicsData", 
    byRow=TRUE, skipPlotRow=0, skipPlotColumns=0)

Arguments

barData

non-negative numeric matrix or vector with values in range of 0 ~ 1

barColor

character vector for color name or R color specification

areaName

character vector, name of plot area, currentlt use "omicsData" only

byRow

logic, whether plot bars for each row or not

skipPlotRow

non-negative integer, how many row(s) to be skipped from first row

skipPlotColumns

non-negative integer, how many row(s) to be skipped from first column

Value

None

Author(s)

Henry Zhang

Examples

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

    barData <- matrix(c(rep(0.25, 15), rep(0.75, 20), rep(0.5, 15)), nrow=1)
    plotBioMatrixBars(barData, barColor="red") 

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.