exportCyjsWithoutImage: exportCyjsWithoutImage

View source: R/utils.R

exportCyjsWithoutImageR Documentation

exportCyjsWithoutImage

Description

Export Cytoscape.js from the network without images

Usage

exportCyjsWithoutImage(
  g,
  rootDir,
  netDir,
  edgeWidth = "weight",
  nodeColor = "tag",
  nodeSize = "Freq",
  nodeColorDiscretePal = "RdBu",
  sizeMin = 10,
  sizeMax = 50
)

Arguments

g

igraph object

rootDir

root directory path

netDir

directory to store scripts

edgeWidth

attribute name for edgeWidth

nodeColor

attribute name for node color

nodeSize

attribute name for node size

nodeColorDiscretePal

color mapping palette for discrete variables

sizeMin

minimum size for scaling node size

sizeMax

maximum size for scaling node size

Details

Export Cytoscape.js script, HTML and stylesheet for the graph without image

Value

return nothing, export to a specified directory

Examples

library(igraph)
g <- graph_from_literal( ME1-+ME2 )
V(g)$size <- c(1,1)
## Not run: exportCyjsWithoutImage(g, "./", "net")

noriakis/wcGeneSummary documentation built on May 31, 2024, 4:42 p.m.