View source: R/get_named_colors.R
get_named_colors | R Documentation |
Internal function used by plotly functions. Extracts the colors that should be used in the plot from platformInfo (contained in the scenario). Alternatively, you can set useDefaultcolors = TRUE. '
get_named_colors(scenario, idList, defaultColorList, useDefaultColors = FALSE)
scenario |
must contain either or both: targetTruth, ownShipTruth |
idList |
list of truthIDs or trackNums |
defaultColorList |
list of default colors - must be as long as idList and in the same order (if you care)! |
useDefaultColors |
if true, this function uses default color scheme (rather than colors in platformInfo). This has no effect if platformInfo is not present in the scenario (b/c we have to use default colors anyway) (default=FALSE) |
plotly object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.