plot.riskyr | R Documentation |
plot.riskyr
is a method that allows to generate
different plot types from a "riskyr"
object.
## S3 method for class 'riskyr' plot(x = NULL, type = "prism", main = NULL, sub = NULL, ...)
x |
An object of class "riskyr", usually a result of a call to |
type |
The type of plot to be generated. |
main |
Text label for main plot title.
Default: |
sub |
Text label for plot subtitle (on 2nd line).
Default: The following plot types are currently available:
|
... |
Additional parameters to be passed to the underlying plotting functions. |
plot.riskyr
also uses the text settings
specified in the "riskyr" object.
riskyr
initializes a riskyr
scenario.
Other visualization functions:
plot_area()
,
plot_bar()
,
plot_crisk()
,
plot_curve()
,
plot_fnet()
,
plot_icons()
,
plot_mosaic()
,
plot_plane()
,
plot_prism()
,
plot_tab()
,
plot_tree()
Other riskyr scenario functions:
riskyr()
,
summary.riskyr()
# Select a scenario (from list of scenarios): s1 <- scenarios$n1 # select scenario 1 from scenarios plot(s1) # default plot (type = "prism") # Plot types currently available: plot(s1, type = "prism") # prism/network diagram (default) plot(s1, type = "tree", by = "cd") # tree diagram (only 1 perspective) plot(s1, type = "area") # area/mosaic plot plot(s1, type = "tab") # 2x2 frequency/contingency table plot(s1, type = "bar", dir = 2) # bar plot plot(s1, type = "icons") # icon array plot(s1, type = "curve", what = "all") # curves as fn. of prev plot(s1, type = "plane", what = "NPV") # plane as function of sens & spec plot(s1, type = "default") # unknown type: use default plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.