hneth / riskyr

A toolbox for rendering risk literacy more transparent
19 stars 1 forks source link

Generalize plots from 2 to 3 perspectives #22

Closed hneth closed 5 years ago

hneth commented 6 years ago

Many riskyr plots (e.g., plot_fnet, plot_tree, and plot_mosaic) currently allow choosing between 2 perspectives (by splitting the population into 2 sub-groups by either condition or decision, i.e., by = "cd" vs. by = "dc"). Adding accuracy (by = "ac") as a 3rd perspective would support 3 x 2 different versions of each plot.

hneth commented 5 years ago

Quick progress report:

Yet to be implemented is a reduced version of plot_prism (and possibly other functions) that only takes 1 perspective (e.g., by = "cd") and shows the corresponding tree (as in plot_bar).

hneth commented 5 years ago

Progress has been made

The generalization from 2 to 3 perspectives (i.e., viewing the population by condition cd, by decision dc, or by accuracy ac) has consistently been implemented in the following functions:

The new release version of riskyr (v0.2.0) includes all these changes.