Examples for 'GGally::ggally_dot'


Grouped dot plot

Aliases: ggally_dot ggally_dot_no_facet

Keywords: hplot

### ** Examples

# Small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive

data(tips, package = "reshape")
p_(ggally_dot(tips, mapping = ggplot2::aes(x = total_bill, y = sex)))
plot of chunk example-GGally-ggally_dot-1
p_(ggally_dot(tips, mapping = ggplot2::aes_string(x = "total_bill", y = "sex")))
plot of chunk example-GGally-ggally_dot-1
p_(ggally_dot(
  tips,
  mapping = ggplot2::aes_string(y = "total_bill", x = "sex", color = "sex")
))
plot of chunk example-GGally-ggally_dot-1
p_(ggally_dot(
  tips,
  mapping = ggplot2::aes_string(y = "total_bill", x = "sex", color = "sex", shape = "sex")
) + ggplot2::scale_shape(solid=FALSE))
plot of chunk example-GGally-ggally_dot-1

[Package GGally version 2.1.2 Index]