powered by
Generate shapes for the given nodes, shapes can be defined using the shapes otherwise defaults to null.
getShapes(nodes, shapes = NULL)
a vector of shapes which is ready to cbind with nodes data
nodes data, output of getNodes function
character vector indicating manual shapes to choose for nodes
Jayachandra N
nodes <- getNodes(head(mtcars), c("cyl", "gear", "vs"), group =TRUE) nodes$shape <- getShapes(nodes)
Run the code above in your browser using DataLab