getNodes | R Documentation |
Generate nodes for the input data frame, returns data frame of possible nodes and its IDs for the further process.
getNodes(crude_data, columns_for_nodes = NULL, group = FALSE)
crude_data |
Data Frame that you want to build a network for. |
columns_for_nodes |
Vector of column names for crude_data, works well for at least 3 columns |
group |
Logical value, set TRUE to differentiate nodes by shapes and colors. Default value is FALSE |
Data frame, each unique item is a node and associated with unique id
Jayachandra N
getNodes(head(mtcars), c("cyl", "gear", "vs"), group = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.