-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathgeom-col.R
35 lines (33 loc) · 868 Bytes
/
geom-col.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#' @export
#' @rdname geom-docs
geom_col_pattern <- function(mapping = NULL, data = NULL,
position = "stack",
...,
just = 0.5,
width = NULL,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE) {
layer(
data = data,
mapping = mapping,
stat = "identity",
geom = GeomColPattern,
position = position,
show.legend = show.legend,
inherit.aes = inherit.aes,
params = list2(
just = just,
width = width,
na.rm = na.rm,
...
)
)
}
#' @rdname ggpattern-ggproto
#' @format NULL
#' @usage NULL
#' @export
#' @include geom-rect.R
# TODO: deprecate this
GeomColPattern <- ggproto("GeomColPattern", GeomBarPattern)