Learn R Programming

rosetta (version 0.3.12)

ggBarChart: Bar chart using ggplot

Description

This function provides a simple interface to create a ggplot2::ggplot() bar chart.

Usage

ggBarChart(vector, plotTheme = ggplot2::theme_bw(), ...)

Value

A ggplot2::ggplot() plot is returned.

Arguments

vector

The vector to display in the bar chart.

plotTheme

The theme to apply.

...

And additional arguments are passed to ggplot2::geom_bar().

Author

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters gjalt-jorn@behaviorchange.eu

See Also

Examples

Run this code
rosetta::ggBarChart(mtcars$cyl);

Run the code above in your browser using DataLab