ggally_facetdensitystrip: Plots a density plot with facets or a tile plot with facets

Description Usage Arguments Author(s) Examples

View source: R/gg-plots.R

Description

Make Tile Plot as densely as possible.

Usage

1
ggally_facetdensitystrip(data, mapping, ..., den_strip = FALSE)

Arguments

data

data set using

mapping

aesthetics being used

...

other arguments being sent to either geom_histogram or stat_density

den_strip

boolean to decide whether or not to plot a density strip(TRUE) or a facet density(FALSE) plot.

Author(s)

Barret Schloerke [email protected]

Examples

1
2

Example output

gglly_>  data(tips, package = "reshape")

gglly_>  ggally_facetdensity(tips, mapping = ggplot2::aes(x = total_bill, y = sex))

gglly_>  ggally_facetdensity(
gglly_+    tips,
gglly_+    mapping = ggplot2::aes_string(y = "total_bill", x = "sex", color = "sex")
gglly_+  )

gglly_>  data(tips, package = "reshape")

gglly_>  ggally_denstrip(tips, mapping = ggplot2::aes(x = total_bill, y = sex))
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

gglly_>  ggally_denstrip(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "sex"))
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

gglly_>  ggally_denstrip(
gglly_+    tips,
gglly_+    mapping = ggplot2::aes_string(x = "sex", y = "tip", binwidth = "0.2")
gglly_+  ) + ggplot2::scale_fill_gradient(low = "grey80", high = "black")
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Warning messages:
1: Removed 15 rows containing missing values (geom_bar). 
2: Removed 15 rows containing missing values (geom_bar). 
3: Removed 22 rows containing missing values (geom_bar). 

GGally documentation built on May 18, 2018, 1:08 a.m.