Skip to content

Commit

Permalink
labs(): Added gg class (#6045)
Browse files Browse the repository at this point in the history
  • Loading branch information
phispu committed Aug 15, 2024
1 parent 7381160 commit 308d4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ggplot2 (development version)

* Added `gg` class to `labs()` (@phispu, #5553).
* Missing values from discrete palettes are no longer translated
(@teunbrand, #5929).
* Fixed bug in `facet_grid(margins = TRUE)` when using expresssions
Expand Down
2 changes: 1 addition & 1 deletion R/labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ labs <- function(..., title = waiver(), subtitle = waiver(), caption = waiver(),
args <- args[!duplicated(names(args))]
args <- rename_aes(args)

structure(args, class = "labels")
structure(args, class = c("labels", "gg"))
}

#' @rdname labs
Expand Down

0 comments on commit 308d4c3

Please sign in to comment.