getShapes | R Documentation |
Generate shapes for the given nodes, shapes can be defined using the shapes otherwise defaults to null.
getShapes(nodes, shapes = NULL)
nodes |
nodes data, output of getNodes function |
shapes |
character vector indicating manual shapes to choose for nodes |
a vector of shapes which is ready to cbind with nodes data
Jayachandra N
nodes <- getNodes(head(mtcars), c("cyl", "gear", "vs"), group =TRUE)
nodes$shape <- getShapes(nodes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.