Simple Graphs in R - Boxplots

Simple Graphs in R - Boxplots

Stacey Borrego March 8, 2016

Contents

1 Basic Single Boxplot

1

1.1 Outliers Plotted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2 Basic Single Boxplot

2

2.1 All Points Plotted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

3 Single Boxplot

3

3.1 Default Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

4 Single Boxplot

4

4.1 Modified Color with All Points Plotted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

5 Double Boxplot

6

5.1 Default Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

6 Double Boxplot

7

6.1 Modified Color with All Points Plotted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

7 Extra

9

7.1 Example using R Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

1 Basic Single Boxplot

1.1 Outliers Plotted

library(ggplot2) library(scales) setwd("~/Desktop/Simple Graphs in R scripts")

data ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download