Description Usage Arguments Value Examples
View source: R/plotting.functions.R
Render a tornado plot
1 2 3 4 5 6 7 8 9 10 11 12 13 |
outcome_variable |
a character element. |
parameters |
the parms.tried.df data frame. |
outcomes |
the outcomes.summary.df data frame. |
method |
a character element ("kendall-partial-correlation-slow", "pearson-partial-correlation-fast", #' "pearson-partial-correlation-slow", "spearman-partial-correlation-slow", "negative-log-p-value", "t-test"). |
bin_width |
a numeric element representing the width of the bars (by default, 0.5). |
element_text_size |
a numeric element (by default, 12). |
order_by_absolute_value |
a logical element representing whether to order the bars by absolute value (by default, FALSE). |
add_label |
a logical element representing whether to add labels to the bars (by default, FALSE). |
height |
an integer element representing the height of the plot in pixels. |
width |
an integer element representing the width of the plot in pixels. |
parameter_labels |
a character vector representing custom labels for all parameters. |
none.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Load demo data
data("EpiSim.demo")
# Define results
parameters.swept <- EpiSim.demo$parameters
outcomes.summary.df <- EpiSim.demo$results
get.tornado.plot(
outcome_variable = "maxInc",
parameters = parameters.swept,
outcomes = outcomes.summary.df,
height = 500,
width = 756
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.