drake (version 6.2.1)

drake_palette: Show drake's color palette.

Description

This function is used in both the console and graph visualizations. Your console must have the crayon package enabled.

Usage

drake_palette()

Arguments

Value

There is a console message, but the actual return value is NULL.

Details

This palette applies to console output (internal functions console() and console_many_targets()) and the node colors in the graph visualizations. So if you want to contribute improvements to the palette, please both drake_palette() and visNetwork::visNetwork(nodes = legend_nodes())

Examples

Run this code
# NOT RUN {
# Show drake's color palette as text.
drake_palette()
# Show part of the palette as an interactive visNetwork graph.
# These are the nodes in the legend of the graph visualizations.
# }
# NOT RUN {
# visNetwork::visNetwork(nodes = legend_nodes()) # nolint
# }

Run the code above in your browser using DataCamp Workspace