Any recognised cytoscape style option can be passed to the node style. For available options see the cytoscape documentation.
node_style(cytoscape, ...)
cytoscape | object |
---|---|
... | additional parameters passed to the style node object |
ctytoscape object
nodes <- data.frame(id = c('a','b')) edges <- data.frame(id = 'ab', source = 'a', target = 'b') cytoscape(nodes = nodes, edges = edges) %>% node_style('background-color' = '#ff0000')