riskyr (version 0.2.0)

pal_vir: Alternative color palette using viridis colors.

Description

pal_vir is initialized to a vector of named elements (colors) to define a scenario color scheme modeled on the viridis color scale.

Usage

pal_vir

Arguments

Format

An object of class character of length 15.

Details

These colors are select by the Matplotlib viridis color map created by St<U+00E9>fan van der Walt and Nathaniel Smith. See the viridisLite package (maintained by Simon Garnier) for further information.

Assign pal <- pal_vir to use as default color scheme throughout the riskyr package.

See Also

pal contains current color information; init_pal initializes color information.

Other lists containing current scenario information: accu, freq, num, pal_bw, pal_kn, pal_mbw, pal_mod, pal_org, pal_rgb, pal, prob, txt_TF, txt_org, txt

Examples

Run this code
# NOT RUN {
pal_vir        # shows all current color names and values
pal_vir["hi"]  # shows the current color for hits (true positives)
pal_vir["hi"] <- "green3" # defines a new color for hits (true positives, TP)

# }

Run the code above in your browser using DataCamp Workspace