GGally (version 1.2.0)

ggally_facetbar: Plots the Bar Plots Faceted by Conditional Variable

Description

X variables are plotted using geom_bar and faceted by the Y variable.

Usage

ggally_facetbar(data, mapping, ...)

Arguments

data
data set using
mapping
aesthetics being used
...
other arguements are sent to geom_bar

Examples

Run this code
 data(tips, package = "reshape")
 ggally_facetbar(tips, ggplot2::aes(x = sex, y = smoker, fill = time))
 ggally_facetbar(tips, ggplot2::aes(x = smoker, y = sex, fill = time))

Run the code above in your browser using DataLab