Modified version of ggplot2::geom_bar()
.
Arguments
- ...
Additional arguments, passed to
ggplot2::geom_bar()
.- color
character(1)
. Line color. Defaults to disabled, usingNA
.- stat
character(1)
. Statistical transformation to use on the data for this layer.
Details
Convenience function that sets stat = "identity"
automatically and disables
the border around the bars.
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")