GGally (version 1.2.0)

ggally_facetdensity: Plots the density plots by faceting

Description

Make density plots by displaying subsets of the data in different panels.

Usage

ggally_facetdensity(data, mapping, ...)

Arguments

data
data set using
mapping
aesthetics being used
...
other arguments being sent to stat_density

Examples

Run this code
 data(tips, package = "reshape")
 ggally_facetdensity(tips, mapping = ggplot2::aes(x = total_bill, y = sex))
 ggally_facetdensity(
   tips,
   mapping = ggplot2::aes_string(y = "total_bill", x = "sex", color = "sex")
 )

Run the code above in your browser using DataCamp Workspace