getPosition: getPosition

Description Usage Arguments Value Examples

Description

getPosition for all or specified nodes

Usage

1
2
## S4 method for signature 'RCyjs'
getPosition(obj, nodeIDs = NA)

Arguments

obj

an RCyjs instance

nodeIDs

a vector of character strings, default NA

Value

a data.frame with "id", "x" and "y" columns

Examples

1
2
3
4
5
6
7
if(interactive()){
  g <- simpleDemoGraph()
  rcy <- RCyjs(title="getPosition", graph=g)
  layout(rcy, "cose")
  tbl.pos <- getPosition(rcy)
  tbl.posA <- getPosition(rcy, "A")
  }

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.