From 49fe2feb601178888911d8b6fc7e38539414ed45 Mon Sep 17 00:00:00 2001 From: pacoramon Date: Tue, 19 Nov 2024 00:41:04 +0100 Subject: [PATCH] Update geom_boxplot_interactive.R example changed the tooltip parameters to update "\nQ1: " and "\nQ3: " values to '.data$lower' and '.data$upper' following the label instead of displaying the minimum and maximum values. --- examples/geom_boxplot_interactive.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/geom_boxplot_interactive.R b/examples/geom_boxplot_interactive.R index 5acf2a67..064749ea 100644 --- a/examples/geom_boxplot_interactive.R +++ b/examples/geom_boxplot_interactive.R @@ -16,8 +16,8 @@ p <- ggplot(mpg) + tooltip = after_stat({ paste0( "class: ", .data$fill, - "\nQ1: ", prettyNum(.data$ymin), - "\nQ3: ", prettyNum(.data$ymax), + "\nQ1: ", prettyNum(.data$lower), + "\nQ3: ", prettyNum(.data$upper), "\nmedian: ", prettyNum(.data$middle) ) }) @@ -40,8 +40,8 @@ p <- ggplot(mpg) + tooltip = after_stat({ paste0( "class: ", .data$fill, - "\nQ1: ", prettyNum(.data$ymin), - "\nQ3: ", prettyNum(.data$ymax), + "\nQ1: ", prettyNum(.data$lower), + "\nQ3: ", prettyNum(.data$upper), "\nmedian: ", prettyNum(.data$middle) ) }),