R/geom-col.R

Defines functions geom_col_pattern

Documented in geom_col_pattern

#' @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)

Try the ggpattern package in your browser

Any scripts or data that you put into this service are public.

ggpattern documentation built on June 22, 2024, 10:53 a.m.