plotBioNetBars: Bar Plot on caOmicsV bioNetCircos Layout

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioNetCircos.R

Description

Bar plot method for caOmicsV bioNetCircos layout. This will plot one track of bars for every node. bioNetCircos layout and graphic device must be initialized first.

Usage

1
    plotBioNetBars(dataValues, outer, inner, plotColors)

Arguments

dataValues

numeric matrix with range of 0 ~ 1 for bar height. total rows of the matrix must be same as the number of nodes and row names must be same as the vertex names in bioNetGraph

outer

non-negative numeric, the outside boundary of plot area from node center

inner

non-negative numeric, the inside boundary of plot area from node center

plotColors

character vector or vector of R color specification, color names for each sample, pre-generated to control sample colors.

Value

None

Author(s)

Henry Zhang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
    data(bionetPlotDemoData)
    expr <- bionetPlotDemoData$heatmapData[[1]]
    bioNet <- bc3net(expr)

    initializeBioNetCircos(bioNet, totalSamples=60)
    showBioNetNodesLayout()

    methyl <- bionetPlotDemoData$categoryData[[1]]
    sampleColors <- c(rep("red", 20), rep("blue", 20), rep("cyan", 20))
    plotBioNetBars(methyl, outer=1.6, inner=1.5, plotColors=sampleColors)

hzhanghenry/caOmicsV documentation built on May 17, 2019, 10:07 p.m.