View source: R/visualization.R
| plot_sensitivity | R Documentation |
Visualises variable importance from sqi_sensitivity as a
horizontal bar (tornado) chart, ordered from most to least sensitive.
plot_sensitivity(sa_result, title = "Variable Sensitivity to SQI")
sa_result |
Data frame from |
title |
Character. Plot title. |
A ggplot object.
data(soil_data)
cfg <- make_config(
variable = c("pH","EC","BD","OC","MBC","Clay"),
type = c("opt","less","less","more","more","opt"),
opt_low = c(6.0, NA, NA, NA, NA, 20),
opt_high = c(7.0, NA, NA, NA, NA, 35)
)
scored <- score_all(soil_data, cfg, group_cols = c("LandUse","Depth"))
sa <- sqi_sensitivity(scored, cfg, group_cols = c("LandUse","Depth"))
plot_sensitivity(sa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.