From bd2a19ae3142291a7ccaaa8ea8bd3e5b28ae47e5 Mon Sep 17 00:00:00 2001 From: Lisa DeBruine Date: Sun, 26 Oct 2025 13:11:50 +0000 Subject: [PATCH 1/2] dictionary example for labs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example for the dictionary argument of labs() produces a warning and doesn't work (see ) unless you use `dictionary`, not `dict` #> Ignoring unknown labels: #> • dict : "c(disp = \"Displacment\", cyl = \"Number of cylinders\", mpg = \"Miles per gallon\", wt = \"Weight (1000 lbs)\")" --- R/labels.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/labels.R b/R/labels.R index d5f7706d82..b3765427cf 100644 --- a/R/labels.R +++ b/R/labels.R @@ -186,7 +186,7 @@ make_labels <- function(mapping) { #' p + labs(x = "New x label") #' #' # Set labels by variable name instead of aesthetic -#' p + labs(dict = c( +#' p + labs(dictionary = c( #' disp = "Displacment", # Not in use #' cyl = "Number of cylinders", #' mpg = "Miles per gallon", From 3375fe4f4714ffd080bee3acddbac5fbe9ae2da7 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Mon, 27 Oct 2025 15:22:40 +0100 Subject: [PATCH 2/2] `devtools::document()` --- man/labs.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/labs.Rd b/man/labs.Rd index 3b97fa9c52..75cff62dd2 100644 --- a/man/labs.Rd +++ b/man/labs.Rd @@ -86,7 +86,7 @@ p + labs(colour = "Cylinders") p + labs(x = "New x label") # Set labels by variable name instead of aesthetic -p + labs(dict = c( +p + labs(dictionary = c( disp = "Displacment", # Not in use cyl = "Number of cylinders", mpg = "Miles per gallon",