name_to_traffic_light: Get Traffic Light Colours for Names

Description Usage Arguments Value Examples

View source: R/plot_path_network.R

Description

Get Traffic Light Colours for Names

Usage

1

Arguments

x

character of (file or folder) names, e.g. as they appear as node labels in the plot generated with plot_path_network

Value

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

Examples

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)

KWB-R/fakin.path.app documentation built on Nov. 25, 2020, 10:20 p.m.