Description Usage Arguments Value Examples
View source: R/plot_path_network.R
Get Traffic Light Colours for Names
1 |
x |
character of (file or folder) names, e.g. as they appear as
node labels in the plot generated with |
vector of colour strings each of which is green
(name does
comply with naming convention), yellow
(name does almost comply with
naming convention), red
(name does not comply with naming
convention).
1 2 3 4 5 | # Define a vector of names
x <- c("has_speci&l", "has space", "is_ok")
# Colour names by their compliance with naming convention
name_to_traffic_light(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.