acid_geom_bar: Bar chart

acid_geom_barR Documentation

Bar chart

Description

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.

Details

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

Value

Layer/ggproto.

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")

acidgenomics/minimalism documentation built on April 1, 2024, 10:34 a.m.