legend_nodes: Create the nodes data frame used in the legend of the graph...

View source: R/drake_graph_info.R

legend_nodesR Documentation

Create the nodes data frame used in the legend of the graph visualizations. [Soft-deprecated]

Description

Output a visNetwork-friendly data frame of nodes. It tells you what the colors and shapes mean in the graph visualizations.

Usage

legend_nodes(font_size = 20)

Arguments

font_size

Font size of the node label text.

Value

A data frame of legend nodes for the graph visualizations.

Examples

## 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)

ropensci/drake documentation built on March 4, 2024, 6:02 p.m.