View source: R/plot_tornado_plot.R
plot.tornado_plot | R Documentation |
Plot a Tornado Plot object
## S3 method for class 'tornado_plot'
plot(
x,
plot = TRUE,
nvar = NA,
xlabel = "Model Response",
sensitivity_colors = c("grey", "#69BE28"),
geom_bar_control = list(width = NULL),
geom_point_control = list(fill = "black", col = "black"),
...
)
x |
a |
plot |
boolean to determine if the plot is displayed, or just returned |
nvar |
the number of variables to plot |
xlabel |
a label for the x-axis |
sensitivity_colors |
a two element character vector of the bar colors for a lower value and upper value |
geom_bar_control |
a list of |
geom_point_control |
a list of |
... |
future arguments |
the plot
gtest <- lm(mpg ~ cyl*wt*hp, data = mtcars)
tp <- tornado(gtest, type = "PercentChange", alpha = 0.10, xlabel = "MPG")
plot(tp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.