Learn R Programming

userfriendlyscience (version 0.7.2)

ggBarChart: Bar chart using ggplot

Description

This function provides a simple interface to create a ggplot bar chart.

Usage

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

Arguments

vector

The vector to display in the bar chart.

plotTheme

The theme to apply.

And additional arguments are passed to geom_bar.

Value

A ggplot plot is returned.

See Also

geom_bar

Examples

Run this code
# NOT RUN {
ggBarChart(mtcars$cyl);
# }

Run the code above in your browser using DataLab