Learn R Programming

caOmicsV (version 1.2.0)

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

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

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

Examples

Run this code
    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)

Run the code above in your browser using DataLab