Publication-quality heatmap using ggplot2 for WEFNC nexus scores.
nexus_heatmap_gg(
scores,
treatment_names = NULL,
dim_labels = c("Water", "Energy", "Food", "Nutrient", "Carbon"),
title = "WEFNC Nexus Heatmap"
)A ggplot2 object.
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
scores <- matrix(c(0.85, 0.70, 0.90, 0.65, 0.80,
0.72, 0.80, 0.85, 0.70, 0.60),
nrow = 2, byrow = TRUE)
nexus_heatmap_gg(scores, treatment_names = c("CA", "CT"))
}
# }