Examples for 'GGally::ggally_facetdensitystrip'


Density or tiles plot with facets

Aliases: ggally_facetdensitystrip

Keywords: hplot

### ** Examples

example(ggally_facetdensity)
gglly_> # Small function to display plots only if it's interactive
gglly_> p_ <- GGally::print_if_interactive

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

gglly_> p_(ggally_facetdensity(tips, mapping = ggplot2::aes(x = total_bill, y = sex)))
plot of chunk example-GGally-ggally_facetdensitystrip-1
gglly_> p_(ggally_facetdensity(
gglly_+   tips,
gglly_+   mapping = ggplot2::aes_string(y = "total_bill", x = "sex", color = "sex")
gglly_+ ))
plot of chunk example-GGally-ggally_facetdensitystrip-1
example(ggally_denstrip)
gglly_> # Small function to display plots only if it's interactive
gglly_> p_ <- GGally::print_if_interactive

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

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 (geom_bar).
plot of chunk example-GGally-ggally_facetdensitystrip-1
gglly_> p_(ggally_denstrip(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "sex")))
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Warning: Removed 15 rows containing missing values (geom_bar).
plot of chunk example-GGally-ggally_facetdensitystrip-1
gglly_> p_(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: Removed 22 rows containing missing values (geom_bar).
plot of chunk example-GGally-ggally_facetdensitystrip-1

[Package GGally version 2.1.2 Index]