Last data update: 2014.03.03

R: Plots either Box Plot or Dot Plots
ggally_dotAndBoxR Documentation

Plots either Box Plot or Dot Plots

Description

Place box plots or dot plots on the graph

Usage

ggally_dotAndBox(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 schloerke@gmail.com

Examples

 data(tips, package = "reshape")
 ggally_dotAndBox(
   tips,
   mapping = ggplot2::aes(x = total_bill, y = sex, color = sex),
   boxPlot = TRUE
 )
 ggally_dotAndBox(tips, mapping = ggplot2::aes(x = total_bill, y = sex, color = sex), boxPlot=FALSE)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(GGally)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GGally/ggally_dotAndBox.Rd_%03d_medium.png", width=480, height=480)
> ### Name: ggally_dotAndBox
> ### Title: Plots either Box Plot or Dot Plots
> ### Aliases: ggally_dotAndBox
> ### Keywords: hplot
> 
> ### ** Examples
> 
>  data(tips, package = "reshape")
>  ggally_dotAndBox(
+    tips,
+    mapping = ggplot2::aes(x = total_bill, y = sex, color = sex),
+    boxPlot = TRUE
+  )
>  ggally_dotAndBox(tips, mapping = ggplot2::aes(x = total_bill, y = sex, color = sex), boxPlot=FALSE)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>