getBioNetPlotLocations: Get bioNetCircos Plot Locations

Description Usage Arguments Value Author(s) Examples

View source: R/caOmicsV.bioNetCircos.R

Description

Get plot locations for a node on caOmicsC bioNetCircos layout

Usage

1
    getBioNetPlotLocations(nodeCenter, outer, inner)

Arguments

nodeCenter

numeric, x and y coordinates of the node center

outer

non-negative numeric, outer limit of plot track relative to node center

inner

non-negative numeric, inner limit of plot track relative to ode center

Value

nodeCenter

numeric, x and y coordinates of the node center

outPositions

two dimensional numeric matrix for x and y coordinates of outer boundary for plot

inPositions

two dimensional numeric matrix for x and y coordinates of inner boundary for plot

positionIndex

matrix with index of x and y coordinates of base plot position for each sample

Author(s)

Henry Zhang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
    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)

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