txt {riskyr} | R Documentation |
Basic text elements.
Description
txt
is initialized to a list of named elements
to define basic scenario titles and labels.
Usage
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
andinit_num
) are integral parts of ariskyr
scenario.By contrast, basic color information (see
pal
andinit_pal
) is not an integral part, but independently defined.The names of probabilities (see
prob
) are currently not an integral part oftxt
andriskyr
scenarios (but defined inprob_lbl_def
andlabel_prob
).
txt
currently contains the following text labels:
-
scen_lbl
The current scenario title (sometimes in Title Caps). -
scen_txt
A longer text description of the current scenario (which may extend over several lines). -
scen_src
The source information for the current scenario. -
scen_apa
The source information in APA format. -
scen_lng
The language of the current scenario (as character code). Options:"en"
: English,"de"
: German. -
popu_lbl
A general name describing the current population. -
N_lbl
A short label for the current populationpopu
or sample. -
cond_lbl
A general name for the condition dimension, or the feature (e.g., some disease) currently considered. -
cond_true_lbl
A short label for the presence of the current condition orcond_true
cases (the condition's true state of being TRUE). -
cond_false_lbl
A short label for the absence of the current condition orcond_false
cases (the condition's true state of being FALSE). -
dec_lbl
A general name for the decision dimension, or the judgment (e.g., some diagnostic test) currently made. -
dec_pos_lbl
A short label for positive decisions ordec_pos
cases (e.g., predicting the presence of the condition). -
dec_neg_lbl
A short label for negative decisions ordec_neg
cases (e.g., predicting the absence of the condition). -
acc_lbl
A general name for the accuracy dimension, or the correspondence between the condition currently considered and the decision judgment currently made. -
dec_cor_lbl
A short label for correct and accurate decisions ordec_cor
cases (accurate predictions). -
dec_err_lbl
A short label for incorrect decisions ordec_err
cases (erroneous predictions). -
sdt_lbl
A general name for all 4 cases/categories/cells of the 2x2 contingency table (e.g., condition x decision, using SDT). -
hi_lbl
A short label for hits or true positiveshi
/TP cases (i.e., correct decisions of the presence of the condition, when the condition is actually present). -
mi_lbl
A short label for misses or false negativesmi
/FN cases (i.e., incorrect decisions of the absence of the condition when the condition is actually present). -
fa_lbl
A short label for false alarms or false positivesfa
/FP cases (i.e., incorrect decisions of the presence of the condition when the condition is actually absent). -
cr_lbl
A short label for correct rejections or true negativescr
/TN cases (i.e., a correct decision of the absence of the condition, when the condition is actually absent).
See Also
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_unikn
,
pal_vir
,
pal
,
prob
,
txt_TF
,
txt_org
Examples
txt # Show all current names and elements
txt$scen_lbl # Show the current scenario label (e.g., used in plot titles)
txt$scen_lbl <- "My example" # Set a new scenario title