Skip to content

Commit eafcbb4

Browse files
debruineteunbrand
andauthored
dictionary example for labs() (#6713)
* dictionary example for labs() The example for the dictionary argument of labs() produces a warning and doesn't work (see <https://ggplot2.tidyverse.org/reference/labs.html#ref-examples>) 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)\")" * `devtools::document()` --------- Co-authored-by: Teun van den Brand <[email protected]>
1 parent 3e10662 commit eafcbb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/labels.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ make_labels <- function(mapping) {
186186
#' p + labs(x = "New x label")
187187
#'
188188
#' # Set labels by variable name instead of aesthetic
189-
#' p + labs(dict = c(
189+
#' p + labs(dictionary = c(
190190
#' disp = "Displacment", # Not in use
191191
#' cyl = "Number of cylinders",
192192
#' mpg = "Miles per gallon",

man/labs.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)