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
riskyrApp
version [2018-12]:
To use selectedriskyr
functions without the need for coding
an updated version ofriskyrApp
is 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_fnet
andplot_tree
are replaced byplot_prism
, andplot_mosaic
is 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_prism
function [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_fnet
andplot_tree
functions (and removes dependency on thediagram
package). -
New
plot_area
function [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_mosaic
function (and removes dependencies on thegrid
andvcd
packages). -
New
plot_tab
function [2018-10]:
Show a scenario as contingency table of frequencies (with row and column sums, and options for showing probabilities);
a variant ofplot_area
that does not scale area sizes. -
New
plot_bar
function [2018-08]:
Show scenario frequencies as vertical bars (in various configurations).
Under the hood
-
Create
plot_util.R
collection of graphical utility functions [2018-08]:
Define a newbox
object type and various functions for plotting, labeling, and linking them in graphs
(to remove dependencies on and limitations imposed by other packages). -
Updated
riskyr
function [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_icons
function [2018-12]:
Show icons separated into 2 subsets by 3 perspectives (condition, decision, accuracy), using the sameby
argument as the other plotting functions. -
plot_curve
andplot_plane
functions [2018-11]:
Update variable names (to snake_case) and add arguments (e.g.,col_pal
,lbl_txt
mar_notes
, etc.) for consistency with newer plotting functions. -
scale
argument [2018-10]:
The new plotting functions feature ascale
argument 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.cex
tocex.lbl
to ensure consistency withplot_curves
andplot_plane
(and use it to scale arrow labels accordingly). Added warning when using deprecated argument. -
plot_mosaic
[2018-02]:
Change Booleanvsplit
argument toby = "cd"
vs.by = "dc"
to ensure consistency withplot_fnet
andplot_tree
. Added warning when using deprecated argument. -
mar_notes
andplot_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 framepopu
and interpret is as ariskyr
scenario, allows creating scenarios from raw data. -
comp_accu.R
[2018-08]:
Compute exact accuracy values (not approximations, when usingcomp_accu_freq
on roundedfreq
values) by using the new functioncomp_accu_prob
to compute the listaccu
from probabilities. Signal rounding when showing accuracy based on rounded frequencies in plots (whenshow.accu == TRUE
andround == TRUE
).
Default objects (lists and vectors)
-
pal
andfreq
[2018-12]:
Use more consistent color and frequency names (e.g.,cond_true
,dec_pos
, anddec_cor
are 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.cor
anddec.err
(i.e.,hi + cr
vs.mi + fa
as the diagonal of 4 SDT cases). This increases the number of frequencies infreq
from 9 to 11. Also added corresponding labels ininit_txt.R
and colors ininit_pal.R
. -
prob
[2018-09]:
Include accuracy metrics in probabilities (inprob
and summary functions). -
pal
andtxt
[2018-10]:
Add multiple color palettes and text labeling schemes (see?pal
and?txt
for 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]