Skip to content

Commit bbdc7a5

Browse files
committed
also access ggplot_built slots with normal extractors
1 parent 53504c3 commit bbdc7a5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

NAMESPACE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method("$","ggplot2::ggplot")
3+
S3method("$","ggplot2::gg")
44
S3method("$","ggplot2::theme")
55
S3method("$",ggproto)
66
S3method("$",ggproto_parent)
7-
S3method("$<-","ggplot2::ggplot")
7+
S3method("$<-","ggplot2::gg")
88
S3method("$<-","ggplot2::mapping")
99
S3method("+",gg)
10-
S3method("[","ggplot2::ggplot")
10+
S3method("[","ggplot2::gg")
1111
S3method("[","ggplot2::mapping")
1212
S3method("[",mapped_discrete)
13-
S3method("[<-","ggplot2::ggplot")
13+
S3method("[<-","ggplot2::gg")
1414
S3method("[<-","ggplot2::mapping")
1515
S3method("[<-",mapped_discrete)
16-
S3method("[[","ggplot2::ggplot")
16+
S3method("[[","ggplot2::gg")
1717
S3method("[[",ggproto)
18-
S3method("[[<-","ggplot2::ggplot")
18+
S3method("[[<-","ggplot2::gg")
1919
S3method("[[<-","ggplot2::mapping")
2020
S3method(.DollarNames,ggproto)
2121
S3method(as.data.frame,mapped_discrete)

R/plot.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,34 +280,34 @@ S7::method(print, class_ggplot) <-
280280
}
281281

282282
#' @export
283-
`$.ggplot2::ggplot` <- function(x, i) {
283+
`$.ggplot2::gg` <- function(x, i) {
284284
`[[`(S7::props(x), i)
285285
}
286286

287287
#' @export
288-
`$<-.ggplot2::ggplot` <- function(x, i, value) {
288+
`$<-.ggplot2::gg` <- function(x, i, value) {
289289
S7::props(x) <- `$<-`(S7::props(x), i, value)
290290
x
291291
}
292292

293293
#' @export
294-
`[.ggplot2::ggplot` <- function(x, i) {
294+
`[.ggplot2::gg` <- function(x, i) {
295295
`[`(S7::props(x), i)
296296
}
297297

298298
#' @export
299-
`[<-.ggplot2::ggplot` <- function(x, i, value) {
299+
`[<-.ggplot2::gg` <- function(x, i, value) {
300300
S7::props(x) <- `[<-`(S7::props(x), i, value)
301301
x
302302
}
303303

304304
#' @export
305-
`[[.ggplot2::ggplot` <- function(x, i) {
305+
`[[.ggplot2::gg` <- function(x, i) {
306306
`[[`(S7::props(x), i)
307307
}
308308

309309
#' @export
310-
`[[<-.ggplot2::ggplot` <- function(x, i, value) {
310+
`[[<-.ggplot2::gg` <- function(x, i, value) {
311311
S7::props(x) <- `[[<-`(S7::props(x), i, value)
312312
x
313313
}

0 commit comments

Comments
 (0)