Learn R Programming

GGally (version 1.4.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 arguments are sent to geom_bar

Examples

Run this code
# NOT RUN {
 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