rg_geom_bar: Plot bars with cumstom design

Description Usage Arguments Examples

View source: R/plot_geoms.R

Description

Wrapper around geom_bar() with default parameters to modify the design of the bars. For a description of the function parameters see geom_bar

Usage

1
2
3
4
5
6
7
8
rg_geom_bar(
  mapping = NULL,
  stat = "identity",
  width = 0.4,
  position = ggplot2::position_dodge(width = 0.5),
  color = "black",
  ...
)

Arguments

mapping

aestetic mapping

stat

string, how to calculate height of bars?

width

integer, width of the bars

position

position of the bars

color

color of the frame around the bars

...

parameters passed on to geom_bar()

Examples

1
2
ggplot(BOD, aes(factor(Time), demand)) +
rg_geom_bar(aes(fill = factor(Time)))

sitscholl/Rgadgets documentation built on Feb. 19, 2021, 1:24 a.m.