geom_bar: Bars, rectangles with bases on x-axis.

Description Usage See Also Examples

Description

Bars, rectangles with bases on x-axis.

Usage

1
  geom_bar(aesthetics = list(), na.rm = FALSE)

See Also

Other rectangular.geoms: geom_raster, geom_rect, geom_tile

Examples

1
2
3
4
5
6
7
df <- data.frame(x = seq(0,1, 0.1), y = seq(0, 1, 0.1))
geom_plot(geom_bar(), df)
geom_plot(geom_bar(), df, munch = TRUE)
geom_plot(geom_bar(list(width = 0.1)), df)
geom_plot(geom_bar(list(width = 0.05)), df)
geom_plot(geom_bar(list(colour = "black")), df)
geom_plot(geom_bar(list(fill = "red")), df)

hadley/layers documentation built on May 17, 2019, 10:42 a.m.