Learn R Programming

caOmicsV (version 1.2.0)

labelBioNetNodeNames: Label Names for Each Node on Network Graph

Description

Plot name for one or more nodes on an igraph network. igraph object and graphic device must be initialized first.

Usage

labelBioNetNodeNames(nodeList=NULL, labelColor="black", labelLocation=c("bottom", "left", "top", "right"), labelOffset=0.5)

Arguments

nodeList
non-negative integer, index of node(s) on a bioNet layout
labelColor
character vector, colored for text (labels)
labelLocation
character vector, location relative to node center, either "bottom", "left", "top", or "right"
labelOffset
non-negative numeric, distance from node outside boundary

Value

None

Examples

Run this code
    data(bionetPlotDemoData)
    expr <- bionetPlotDemoData$heatmapData[[1]]
    bioNet <- bc3net(expr)
    initializeBioNetCircos(bioNet)

    showBioNetNodesLayout()
    labelBioNetNodeNames(nodeList=c(1, 4, 7), labelColor="black", 
        labelLocation="bottom")

Run the code above in your browser using DataLab