fit: fit

Description Usage Arguments Value Examples

Description

fit zoom in (or out) to display all nodes in the current graph

Usage

1
2
## S4 method for signature 'RCyjs'
fit(obj, padding = 30)

Arguments

obj

an RCyjs instance

padding

numeric, in pixels

Value

no return value

Examples

1
2
3
4
5
if(interactive()){
   rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
   setZoom(rcy, 0.5)   # zoom out
   fit(rcy)
   }

Example output

Loading required package: BrowserViz
Loading required package: jsonlite
Loading required package: httpuv

Attaching package: 'BrowserViz'

The following object is masked from 'package:jsonlite':

    toJSON

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min


Attaching package: 'RCyjs'

The following object is masked from 'package:graphics':

    layout

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