Learn R Programming

drake (version 5.2.1)

legend_nodes: Create the nodes data frame used in the legend of vis_drake_graph().

Description

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

Usage

legend_nodes(font_size = 20)

Arguments

font_size

font size of the node label text

Value

A data frame of legend nodes for vis_drake_graph().

See Also

drake_palette(), vis_drake_graph(), dataframes_graph()

Examples

Run this code
# NOT RUN {
# Show the legend nodes used in vis_drake_graph().
# For example, you may want to inspect the color palette more closely.
visNetwork::visNetwork(nodes = legend_nodes())
# }

Run the code above in your browser using DataLab