View source: R/fct_visNetwork_helpers.R
create_label | R Documentation |
Creates a 'label' array for a graphdf, given the columns that you want to include in the label and the seperator
create_label(graphdf, columns = c("type", "penalty"), collapse = " | ")
graphdf |
A graph object (in the form of a data.table) from gfpop or the "edges" from a visNetwork list. |
columns |
a character vector of columns to be included in the label. |
collapse |
A string to seperate each item |
a character vector combining those columns as specified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.