txt is initialized to a list of named elements to define basic scenario titles and labels.

txt

## Format

An object of class list of length 21.

## Details

All textual elements that specify generic labels and titles of riskyr scenarios are stored as named elements (of type character) in a list txt. To change an element, assign a new character object to an existing name.

The list txt is used throughout the riskyr package unless a scenario defines scenario-specific text labels (when using the riskyr function).

Note:

• Basic text information and some numeric parameters (see num and init_num) are integral parts of a riskyr scenario.

• By contrast, basic color information (see pal and init_pal) is not an integral part, but independently defined.

• The names of probabilities (see prob) are currently not an integral part of txt and riskyr scenarios (but defined in prob_lbl_def and label_prob).

txt currently contains the following text labels:

1. scen_lbl The current scenario title (sometimes in Title Caps).

2. scen_txt A longer text description of the current scenario (which may extend over several lines).

3. scen_src The source information for the current scenario.

4. scen_apa The source information in APA format.

5. scen_lng The language of the current scenario (as character code). Options: "en": English, "de": German.

6. popu_lbl A general name describing the current population.

7. N_lbl A short label for the current population popu or sample.

8. cond_lbl A general name for the condition dimension, or the feature (e.g., some disease) currently considered.

9. cond_true_lbl A short label for the presence of the current condition or cond_true cases (the condition's true state of being TRUE).

10. cond_false_lbl A short label for the absence of the current condition or cond_false cases (the condition's true state of being FALSE).

11. dec_lbl A general name for the decision dimension, or the judgment (e.g., some diagnostic test) currently made.

12. dec_pos_lbl A short label for positive decisions or dec_pos cases (e.g., predicting the presence of the condition).

13. dec_neg_lbl A short label for negative decisions or dec_neg cases (e.g., predicting the absence of the condition).

14. acc_lbl A general name for the accuracy dimension, or the correspondence between the condition currently considered and the decision judgment currently made.

15. dec_cor_lbl A short label for correct and accurate decisions or dec_cor cases (accurate predictions).

16. dec_err_lbl A short label for incorrect decisions or dec_err cases (erroneous predictions).

17. sdt_lbl A general name for all 4 cases/categories/cells of the 2x2 contingency table (e.g., condition x decision, using SDT).

18. hi_lbl A short label for hits or true positives hi/TP cases (i.e., correct decisions of the presence of the condition, when the condition is actually present).

19. mi_lbl A short label for misses or false negatives mi/FN cases (i.e., incorrect decisions of the absence of the condition when the condition is actually present).

20. fa_lbl A short label for false alarms or false positives fa/FP cases (i.e., incorrect decisions of the presence of the condition when the condition is actually absent).

21. cr_lbl A short label for correct rejections or true negatives cr/TN cases (i.e., a correct decision of the absence of the condition, when the condition is actually absent).

init_txt initializes text information; riskyr initializes a riskyr scenario; num contains basic numeric parameters; init_num initializes basic numeric parameters; pal contains current color information; init_pal initializes color 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, pal_bwp, pal_bw, pal_kn, pal_mbw, pal_mod, pal_org, pal_rgb, pal_vir, pal, prob, txt_TF, txt_org

## Examples

txt           # Show  all current names and elements#> $scen_lbl #> [1] "Scenario" #> #>$scen_txt
#> [1] "Description of the current scenario in a short paragraph of text. This description may include several sentences."
#>
#> $scen_src #> [1] "Source information" #> #>$scen_apa
#> [1] "Source information in APA format"
#>
#> $scen_lng #> [1] "en/de" #> #>$popu_lbl
#> [1] "Population"
#>
#> $N_lbl #> [1] "N" #> #>$cond_lbl
#> [1] "Truth"
#>
#> $cond_true_lbl #> [1] "True" #> #>$cond_false_lbl
#> [1] "False"
#>
#> $dec_lbl #> [1] "Test" #> #>$dec_pos_lbl
#> [1] "Positive"
#>
#> $dec_neg_lbl #> [1] "Negative" #> #>$acc_lbl
#> [1] "Accuracy"
#>
#> $dec_cor_lbl #> [1] "Correct" #> #>$dec_err_lbl
#> [1] "Incorrect"
#>
#> $sdt_lbl #> [1] "Cases" #> #>$hi_lbl
#> [1] "TP"
#>
#> $mi_lbl #> [1] "FN" #> #>$fa_lbl
#> [1] "FP"
#>
#> $cr_lbl #> [1] "TN" #> txt$scen_lbl  # Show the current scenario label (e.g., used in plot titles)#> [1] "Scenario"txt\$scen_lbl <- "My example"  # Set a new scenario title