diff --git a/R/labels.R b/R/labels.R index b3765427cf..75413e7485 100644 --- a/R/labels.R +++ b/R/labels.R @@ -105,7 +105,12 @@ setup_plot_labels <- function(plot, layers, data) { if (!is.function(label)) { return(label) } - label(labels[[nm]] %||% "") + + if (nm %in% c("alt", "alt_insight")) { + label(plot %||% "") + } else { + label(labels[[nm]] %||% "") + } }) dict <- plot_labels$dictionary