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