Learn R Programming

riskyr (version 0.1.0)

pal: List current values of basic color information.

Description

pal is initialized to a vector of named elements (colors) to define the color scheme for the current scenario that is used throughout the riskyr package.

Usage

pal

Arguments

Format

An object of class character of length 11.

Details

All color information corresponding to the current scenario is stored as named colors in a vector pal. To change a color, assign a new color to an existing element name.

pal currently contains colors with the following names:

  1. N Color representing the population of N cases or individuals.

  2. true Color representing cases of cond.true, for which the current condition is TRUE.

  3. false Color representing cases of in cond.false, for which the current condition is FALSE.

  4. pos Color representing cases of dec.pos, for which the current decision is positive.

  5. neg Color representing cases in dec.neg, for which the current decision is negative.

  6. hi Color representing hits or true positives in hi (i.e., correct cases for which the current condition is TRUE and the decision is positive).

  7. mi Color representing misses or false negatives in mi (i.e., incorrect cases for which the current condition is TRUE but the decision is negative).

  8. fa Color representing false alarms or false positives in fa (i.e., incorrect cases for which the current condition is FALSE but the decision is positive).

  9. cr Color representing correct rejections or true negatives in cr (i.e., correct cases for which the current condition is FALSE and the decision is negative).

  10. ppv Color representing positive predictive values PPV (i.e., the conditional probability that the condition is TRUE, provided that the decision is positive).

  11. npv Color representing negative predictive values NPV (i.e., the conditional probability that the condition is FALSE, provided that the decision is negative).

See Also

init_pal initializes color information; num contains basic numeric parameters; init_num initializes basic numeric parameters; txt contains current text information; init_txt initializes text information; freq contains current frequency information; comp_freq computes current frequency information; prob contains current probability information; comp_prob computes current probability information.

Other lists containing current scenario information: accu, freq, num, prob, txt

Examples

Run this code
# NOT RUN {
pal       # displays the vector of all current color names and values
pal["hi"] # displays the current color for hits (true positives)
pal["hi"] <- "green3" # defines a new color for hits (true positives)


# }

Run the code above in your browser using DataLab