Skip to contents

Modified version of ggplot2::geom_bar().

Usage

acid_geom_bar(..., color = NA, stat = "identity")

Arguments

...

Additional arguments, passed to ggplot2::geom_bar().

color

character(1). Line color. Defaults to disabled, using NA.

stat

character(1). Statistical transformation to use on the data for this layer.

Value

Layer/ggproto.

Details

Convenience function that sets stat = "identity" automatically and disables the border around the bars.

Note

Updated 2021-06-29.

Examples

data <- data.frame(
    x = c("a", "b", "c", "d"),
    y = c(5L, 10L, 15L, 20L)
)
p <- ggplot(data = data, mapping = aes(x = .data[["x"]], y = .data[["y"]]))
p + acid_geom_bar(fill = "black")