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"
)

Arguments

scores

A matrix or data frame (treatments as rows, dimensions as columns).

treatment_names

Character vector. Row labels.

dim_labels

Character vector. Column labels. Default: Water, Energy, Food, Nutrient, Carbon.

title

Character. Plot title.

Value

A ggplot2 object.

Examples

# \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"))
}

# }