R/geom-bar-rounded.R

Defines functions geom_bar_rounded

Documented in geom_bar_rounded

#' @rdname geom_col_rounded
#' @export
geom_bar_rounded <-
  function(
    mapping = NULL,
    data = NULL,
    position = ggplot2::position_stack(reverse = TRUE),
    radius = grid::unit(4, "pt"),
    ...,
    width = NULL,
    na.rm = FALSE,
    show.legend = NA,
    inherit.aes = TRUE
  ) {
    ggplot2::layer(
      data = data,
      mapping = mapping,
      stat = "count",
      geom = GeomColRounded,
      position = position,
      show.legend = show.legend,
      inherit.aes = inherit.aes,
      params = list(
        width = width,
        radius = radius,
        na.rm = na.rm,
        ...
      )
    )
  }

Try the ggrounded package in your browser

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

ggrounded documentation built on May 31, 2023, 7:46 p.m.