Recent Releases of riskyr
riskyr - riskyr 0.4.0
riskyr 0.4.0 was released on CRAN on August 15, 2022.
Changes since last release:
Major changes
Enable sampling when computing
freqfromprob(i.e., by description, givenNand 3 essential probabilities) [2021-03]:- add a
sampleargument tocomp_freq(),comp_freq_prob(), andriskyr(); - add a
sampleargument to 6 key plots:
plot_area(),plot_bar(),plot_fnet(),plot_icons(),plot_prism(), andplot_tab().
- add a
Allow conversions/translations between data and descriptions [2021-03]:
write_popu()creates population data from a description (ariskyrscenario);read_popu()creates a description (ariskyrscenario) from population data.
Add a function for plotting cumulative risk curves [2021-12]:
plot_crisk()plots curves and auxiliary information for visualizing cumulative risks and risk increments;pal_criskprovides a corresponding color palette (as a named vector).
- Add
FFTrees_riskyr()to convertFFTreesobjects into correspondingriskyrobjects [2022-08].
Minor changes
Add
mainandsubarguments to all plots (and deprecate the previoustitle_lblargument) [2022-08].Add
is_matrix()to verify a 2x2 matrix (as a 2x2 numeric contingency table).Add
is_integer()to verify integer values.
Micro changes
Fix bug in
plot_bar()that caused incorrect bar labels [2022-08].Update URLs in
README.mdand all vignettes to https://riskyr.org/ [2021-03].Increase options and robustness for labeling frequencies and probabilities in plots [2021-03].
Reduce widths of freq boxes in
plot_prism()to reduce overlaps [2021-03].Rename labels in
txt_TFto avoid confusion, as "True condition" (i.e., X) wasFALSE(now "absent") for "True negatives" (TN/crcases) [2021-03].
The current development version (0.4.0.9001+) is available at https://github.com/hneth/riskyr/.
- HTML
Published by hneth over 3 years ago
riskyr - riskyr 0.3.0
riskyr 0.3.0
riskyr 0.3.0 is published on CRAN on March 23, 2021.
Log of changes since last release:
Major changes
- Added
plot_fnet()for plotting frequency nets (Binder et al., 2020) [2020-12].
Minor changes
Changes to existing visualization functions
Changed default setting of
mar_notesin all plotting functions [2021-01]: Usingmar_notes = FALSEas those details are not needed and can be distracting in visualizations.Change default arguments for
plot_area()andplot_tab()[2019-01]:
Change default settings fromf_lbl_hd = "abb"tof_lbl_hd = "nam"(as this makes more sense for riskyrApp).New options for
plot_curve()[2019-01]:
Plotting probability curves as a function of prevalence does not require any specific prevalence value. Thus, setting theprevargument to eitherNAor to a vector of several probabilities is now supported. Setting the newprev_rangeargument to a range withinc(0, 1)allows zooming into more specific ranges ofprevvalues (on x-axis).New options for
plot_plane()[2019-01]:
Plotting a probability plane as a function of sensitivity and specificity does not require specifying all values. Thus, setting thesensandspecarguments to eitherNAor to a vector of several probabilities is now supported. Setting the newsens_rangeandspec_rangearguments to ranges withinc(0, 1)allows zooming into more specific ranges ofsensvalues (on x-axis) andspecvalues (on y-axis).New options for
plot_prism()[2019-01]:
Using the newp_lwdandp_scalearguments allows scaling the widths of probability links by current probability values.
Data and functions
data[2019-07]:
Removed data filesdf_scenarios.RDataanddf_scenarios.csv, as they were redundant todf_scenarios.rda(loaded from\data).make_cond_lbl()[2019-01]:
The condition label now allows forNAor vectors of several values (forprev,sens, andspec).is_prob_range()[2019-01]:
Add utility function to verify a range of two probability values (to check new arguments ofplot_curve()andplot_plane()).
Micro changes
Colors
Using colors of
palfor fill colors of symbols inplot_icon()[2021-02].Add color palettes [2019-01]:
- Add
pal_bwp(a strict b+w color palette suited for printing purposes) and corresponding special cases to major plotting functions. - Add
pal_unikn(based on color definitions of the unikn package).
- Add
Changes to color palettes [2019-01]:
Add a background colorpal[["bg"]]to all palettes and plots (to preempt different system defaults).
Adoptpal_mod-- rather thanpal_mbw-- as default color schemepal(to highlightcond_trueanddec_poscases in default plots).
Details
Added reference to article on theoretical background (Neth et al., 2021).
Bug fix in
plot_prism(): Allow plotting simple trees fornchar(by) == 2.Bug fix in
plot_icons()[2019-01]: Enforce 2 different symbol types for icon arrays with a binary perspective (by = cdordcorac).
- HTML
Published by hneth almost 5 years ago
riskyr - riskyr 0.2.0
riskyr 0.2.0
riskyr 0.2.0 was ready to be released on December 20, 2018, and published on CRAN on January 03, 2019.
Log of changes since last release:
Major changes
Additional resources
New
riskyrAppversion [2018-12]:
To use selectedriskyrfunctions without the need for coding an updated version ofriskyrAppis available at https://github.com/hneth/riskyrApp (R Shiny code) and at http://riskyr.org (interactive online version).Using
pkgdown[2018-12]:
Provide package documentation online at https://hneth.github.io/riskyr (latest release version) and https://hneth.github.io/riskyr/dev/ (current development version).
Visualization functions
Retiring obsolete functions [2018-12]:
The functionsplot_fnetandplot_treeare replaced byplot_prism, andplot_mosaicis replaced byplot_area. This improves functionality (e.g., by providing more consistent options across different plotting functions) and removes dependencies on external packages.New
plot_prismfunction [2018-11]:
Show a scenario as double frequency tree (by 3 x 2 perspectives) or a frequency tree (in 3 perspectives) with many additional options; replaces the olderplot_fnetandplot_treefunctions (and removes dependency on thediagrampackage).New
plot_areafunction [2018-10]:
Show a scenario as a mosaic plot of relative proportions (in 3 x 2 x 2 possible versions, with many additional options); replaces the olderplot_mosaicfunction (and removes dependencies on thegridandvcdpackages).New
plot_tabfunction [2018-10]:
Show a scenario as contingency table of frequencies (with row and column sums, and options for showing probabilities); a variant ofplot_areathat does not scale area sizes.New
plot_barfunction [2018-08]:
Show scenario frequencies as vertical bars (in various configurations).
Under the hood
Create
plot_util.Rcollection of graphical utility functions [2018-08]:
Define a newboxobject type and various functions for plotting, labeling, and linking them in graphs (to remove dependencies on and limitations imposed by other packages).Updated
riskyrfunction [2018-03]:
As an alternative to providing 3 essential frequencies, it is now possible to define a scenario from 4 essential frequencies (and check for consistency with given probabilities).
Minor changes
Changes to existing visualization functions
Improved
plot_iconsfunction [2018-12]:
Show icons separated into 2 subsets by 3 perspectives (condition, decision, accuracy), using the samebyargument as the other plotting functions.plot_curveandplot_planefunctions [2018-11]:
Update variable names (to snakecase) and add arguments (e.g., `colpal,lbltxtmarnotes`, etc.) for consistency with newer plotting functions.scaleargument [2018-10]:
The new plotting functions feature ascaleargument that allows scaling the size or areas of boxes either by (exact) probability or by (possibly rounded) frequency. When usingscale = "f", the probabilities shown are also re-computed from (possibly rounded) frequencies.plot_fnet[2018-02]:
Change argumentbox.cextocex.lblto ensure consistency withplot_curvesandplot_plane(and use it to scale arrow labels accordingly). Added warning when using deprecated argument.plot_mosaic[2018-02]:
Change Booleanvsplitargument toby = "cd"vs.by = "dc"to ensure consistency withplot_fnetandplot_tree. Added warning when using deprecated argument.mar_notesandplot_mar[2018-09]:
Use consistent plot margins and options for showing margin notes for all plots.
Other changes
read_popu[2018-11]:
Read a data framepopuand interpret is as ariskyrscenario, allows creating scenarios from raw data.comp_accu.R[2018-08]:
Compute exact accuracy values (not approximations, when usingcomp_accu_freqon roundedfreqvalues) by using the new functioncomp_accu_probto compute the listaccufrom probabilities. Signal rounding when showing accuracy based on rounded frequencies in plots (whenshow.accu == TRUEandround == TRUE).
Default objects (lists and vectors)
palandfreq[2018-12]:
Use more consistent color and frequency names (e.g.,cond_true,dec_pos, anddec_corare now names of frequencies and the colors corresponding to these frequencies).freq[2018-07]:
Add a 3rd perspective (by accuracy or by correspondence of decision to condition) and corresponding frequency pair ofdec.coranddec.err(i.e.,hi + crvs.mi + faas the diagonal of 4 SDT cases). This increases the number of frequencies infreqfrom 9 to 11. Also added corresponding labels ininit_txt.Rand colors ininit_pal.R.prob[2018-09]:
Include accuracy metrics in probabilities (inproband summary functions).palandtxt[2018-10]:
Add multiple color palettes and text labeling schemes (see?paland?txtfor details).
Micro changes
General changes
More consistent argument and variable names (using snake_case).
Many additions and corrections in documentation, examples, and vignettes.
Details
plot_icons[2018-03]:
Bug fix to also swap symbols in legend when the symbol order is changed manually.txt_def[2018-02]:
Simplify some default text labels (e.g., for current population, condition, and decision)..onAttach[2018-02]:
Cast dice to display probabilistic (i.e., risk-related) start-up messages.
riskyr 0.1.0
- Initial release on CRAN: https://CRAN.R-project.org/package=riskyr [2018-02-19]
- HTML
Published by hneth about 7 years ago
riskyr - riskyr initial release
riskyr initial release
A toolbox for rendering risk literacy more transparent
Risk-related information (like the prevalence of conditions and the sensitivity and specificity of decisions or diagnostic tests) can be expressed in terms of probabilities or frequencies. By providing a toolbox of methods and metrics, riskyr computes, translates, and displays risk-related information in a variety of ways. Offering multiple complementary perspectives on the interplay between key parameters renders teaching and training of risk literacy more transparent.
- HTML
Published by hneth about 8 years ago