View source: R/drake_graph_info.R
legend_nodes | R Documentation |
Output a visNetwork
-friendly
data frame of nodes. It tells you what
the colors and shapes mean
in the graph visualizations.
legend_nodes(font_size = 20)
font_size |
Font size of the node label text. |
A data frame of legend nodes for the graph visualizations.
## Not run:
# Show the legend nodes used in graph visualizations.
# For example, you may want to inspect the color palette more closely.
if (requireNamespace("visNetwork", quietly = TRUE)) {
# visNetwork::visNetwork(nodes = legend_nodes()) # nolint
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.