Creates a heatmap showing nexus dimension scores across treatments.

nexus_heatmap(
  scores,
  row_labels = NULL,
  col_labels = NULL,
  title = "WEFNC Nexus Heatmap",
  color_palette = NULL
)

Arguments

scores

A matrix or data frame where rows represent treatments and columns represent nexus dimensions.

row_labels

Character vector. Treatment names.

col_labels

Character vector. Dimension names.

title

Character. Plot title. Default "WEFNC Nexus Heatmap".

color_palette

Character vector of colors for gradient. Default is a red-yellow-green palette.

Value

Invisibly returns the input scores matrix. Called primarily for the side effect of generating a heatmap plot.

Examples

# \donttest{
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(scores,
  row_labels = c("Conservation", "Conventional"),
  col_labels = c("Water", "Energy", "Food", "Nutrient", "Carbon"))


# }