exportCyjs: exportCyjs

View source: R/utils.R

exportCyjsR Documentation

exportCyjs

Description

Export Cytoscape.js from the network

Usage

exportCyjs(g, rootDir, netDir, bubble = FALSE, withEdge = TRUE)

Arguments

g

igraph object

rootDir

root directory path

netDir

directory to store scripts

bubble

default to FALSE, if node attribute "group" is available, use the grouping to draw bubblesets using 'https://github.com/upsetjs/cytoscape.js-bubblesets'

withEdge

connect edges or not in bubblesets

Details

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

Value

return nothing, export to a specified directory

Examples

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

noriakis/wcGeneSummary documentation built on April 22, 2024, 7:12 a.m.