Make tile plot or density plot as compact as possible.
Examples
example(ggally_facetdensity)
#>
#> gglly_> # Small function to display plots only if it's interactive
#> gglly_> p_ <- GGally::print_if_interactive
#>
#> gglly_> data(tips)
#>
#> gglly_> p_(ggally_facetdensity(tips, mapping = ggplot2::aes(x = total_bill, y = sex)))
#>
#> gglly_> p_(ggally_facetdensity(
#> gglly_+ tips,
#> gglly_+ mapping = ggplot2::aes(sex, total_bill, color = sex)
#> gglly_+ ))
example(ggally_denstrip)
#>
#> gglly_> # Small function to display plots only if it's interactive
#> gglly_> p_ <- GGally::print_if_interactive
#>
#> gglly_> data(tips)
#>
#> gglly_> p_(ggally_denstrip(tips, mapping = ggplot2::aes(x = total_bill, y = sex)))
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> Warning: Removed 15 rows containing missing values or values outside the scale
#> range (`geom_bar()`).
#>
#> gglly_> p_(ggally_denstrip(
#> gglly_+ tips,
#> gglly_+ mapping = ggplot2::aes(sex, tip), binwidth = 0.2
#> gglly_+ ) + ggplot2::scale_fill_gradient(low = "grey80", high = "black"))
#> Warning: Removed 41 rows containing missing values or values outside the scale
#> range (`geom_bar()`).