Skip to content

riskyr 0.4.0

Latest
Compare
Choose a tag to compare
@hneth hneth released this 15 Aug 07:15
· 165 commits to master since this release

riskyr 0.4.0 was released on CRAN on August 15, 2022.

Changes since last release:

Major changes

  • Enable sampling when computing freq from prob (i.e., by description, given N and 3 essential probabilities) [2021-03]:

    • add a sample argument to comp_freq(), comp_freq_prob(), and riskyr();

    • add a sample argument to 6 key plots:
      plot_area(), plot_bar(), plot_fnet(), plot_icons(), plot_prism(), and plot_tab().

  • Allow conversions/translations between data and descriptions [2021-03]:

    • write_popu() creates population data from a description (a riskyr scenario);

    • read_popu() creates a description (a riskyr scenario) 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_crisk provides a corresponding color palette (as a named vector).

  • Add FFTrees_riskyr() to convert FFTrees objects into corresponding riskyr objects [2022-08].

Minor changes

  • Add main and sub arguments to all plots (and deprecate the previous title_lbl argument) [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.md and 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_TF to avoid confusion, as "True condition" (i.e., X) was FALSE (now "absent") for "True negatives" (TN/cr cases) [2021-03].

The current development version (0.4.0.9001+) is available at https://github.com/hneth/riskyr/.