drawBioNetNodeBackground: Draw Background for A Data Track On Nodes of caOmicsV bioNet...

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioNetCircos.R

Description

Paint (with any color other than white) background for a circular track on each node on caOmicsV bioNetCircos layout. Graphic device and igraph object must exist.

Usage

1
    drawBioNetNodeBackground(trackLocations, bgColor=gray(0.9, alpha=0.5))

Arguments

trackLocations

a list returned by getBioNetPlotLocations() function.

bgColor

character vector or R color specification for background color

Value

None

Author(s)

Henry Zhang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
    data(bionetPlotDemoData)
    expr <- bionetPlotDemoData$heatmapData[[1]]
    bioNet <- bc3net(expr)
    initializeBioNetCircos(bioNet)

    bioNetGraph <- getBioNetGraph()
    outer <- 1.5
    inner <- 1.0

    nodeCenter <- as.numeric(bioNetGraph$layout[1,])
    plotLocations <- getBioNetPlotLocations(nodeCenter, outer, inner)

    showBioNetNodesLayout()
    eraseBioNetNode()
    drawBioNetNodeBackground(plotLocations)

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