Skip to content

Commit 308d4c3

Browse files
authored
labs(): Added gg class (#6045)
1 parent 7381160 commit 308d4c3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ggplot2 (development version)
22

3+
* Added `gg` class to `labs()` (@phispu, #5553).
34
* Missing values from discrete palettes are no longer translated
45
(@teunbrand, #5929).
56
* Fixed bug in `facet_grid(margins = TRUE)` when using expresssions

R/labels.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ labs <- function(..., title = waiver(), subtitle = waiver(), caption = waiver(),
139139
args <- args[!duplicated(names(args))]
140140
args <- rename_aes(args)
141141

142-
structure(args, class = "labels")
142+
structure(args, class = c("labels", "gg"))
143143
}
144144

145145
#' @rdname labs

0 commit comments

Comments
 (0)