ggally_dot_and_box: Plots either Box Plot or Dot Plots

Description Usage Arguments Author(s) Examples

View source: R/gg-plots.R

Description

Place box plots or dot plots on the graph

Usage

1
ggally_dot_and_box(data, mapping, ..., boxPlot = TRUE)

Arguments

data

data set using

mapping

aesthetics being used

...

parameters passed to either geom_jitter or geom_boxplot

boxPlot

boolean to decide to plot either box plots (TRUE) or dot plots (FALSE)

Author(s)

Barret Schloerke [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 data(tips, package = "reshape")
 ggally_dot_and_box(
   tips,
   mapping = ggplot2::aes(x = total_bill, y = sex, color = sex),
   boxPlot = TRUE
 )
 ggally_dot_and_box(
   tips,
   mapping = ggplot2::aes(x = total_bill, y = sex, color = sex),
   boxPlot = FALSE
 )

Example output



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