Box Plots et al in R _Package lessR et al.

UA-60924200-1


> attach(RED.Wine.14MARCH)

> library("lessR", lib.loc="~/R/win-library/3.1")

 

lessR 3.2      now RStudio compatible        www.lessRstats.com

---------------------------------------------------------------

To get started, and for help in general, enter:  > Help()

To read a text, Excel, SPSS or R data file:  > mydata <- Read()

---------------------------------------------------------------

> # box plot with outliers more strongly highlighted

> BoxPlot(y, col.stroke="red", xlab="_Fixed_Acidity_")

  

--- _Fixed_Acidity_ ---

 

Present: 1599

Missing: 0

Total  : 1599

 

Minimum      : 4.6

Lower Whisker: 4.6

Lower Hinge  : 7.1

Median       : 7.9

Upper Hinge  : 9.2

Upper Whisker: 12.3

Maximum      : 15.9

 

1st Quartile : 7.1

3rd Quartile : 9.2

IQR          : 2.1

 

Number of outliers: 49

Small: none

Large: 12.4  12.4  12.4  12.4  12.5  12.5  12.5  12.5  12.5  12.5  12.5  12.6  12.6  12.6  12.6  12.7  ...  15  15.5  15.5  15.6  15.6  15.9 

 

>

>

 


____

>

> layout(matrix(c(1, 1, 2, 3), 2, 2, byrow = TRUE))

> y <- fixed.acidity

> x <- quality

> m <- volatile.acidity

> # 3 box plots with outliers more strongly highlighted

> BoxPlot(y, col.stroke="red", horiz=TRUE, col.fill="plum",xlab="_Fixed_Acidity_")

 

 

--- _Fixed_Acidity_ ---

 

Present: 1599

Missing: 0

Total  : 1599

 

Minimum      : 4.6

Lower Whisker: 4.6

Lower Hinge  : 7.1

Median       : 7.9

Upper Hinge  : 9.2

Upper Whisker: 12.3

Maximum      : 15.9

 

1st Quartile : 7.1

3rd Quartile : 9.2

IQR          : 2.1

 

Number of outliers: 49

Small: none

Large: 12.4  12.4  12.4  12.4  12.5  12.5  12.5  12.5  12.5  12.5  12.5  12.6  12.6  12.6  12.6  12.7  ...  15  15.5  15.5  15.6  15.6  15.9 

 

> BoxPlot(x, col.stroke="blue", horiz=1, col.fill="green", xlab="_Quality_")

 

 

--- _Quality_ ---

 

Present: 1599

Missing: 0

Total  : 1599

 

Minimum      : 3

Lower Whisker: 4

Lower Hinge  : 5

Median       : 6

Upper Hinge  : 6

Upper Whisker: 7

Maximum      : 8

 

1st Quartile : 5

3rd Quartile : 6

IQR          : 1

 

Number of outliers: 28

Small: 3  3  3  3  3  3  3  3  3  3 

Large: 8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8 

 

> BoxPlot(m, col.stroke="green", horiz=1, col.fill="grey", xlab="_Volatile_Acidity_")

 

 

--- _Volatile_Acidity_ ---

 

Present: 1599

Missing: 0

Total  : 1599

 

Minimum      : 0.120

Lower Whisker: 0.120

Lower Hinge  : 0.390

Median       : 0.520

Upper Hinge  : 0.640

Upper Whisker: 1.010

Maximum      : 1.580

 

1st Quartile : 0.390

3rd Quartile : 0.640

IQR          : 0.250

 

 

>

>