| Library: | plot |
| See also: | plotdot dispbox |
| Quantlet: | plotbox | |
| Description: | High level routine for boxplots. |
| Usage: | plotbox(inX {,inFactor}) | |
| Input: | ||
| inX | n x 1 Vector (continuous data) | |
| inFactor | n x 1 Vector (discrete) specifying groups within inX | |
The whiskers designate the farest non-outliers above resp. below the box.
Outliers are all data at least 1.5 * (height of box) away from the upper resp. lower edge of the box. Outliers are plotted as circles.
If this distance exceeds 3 * (height of box), a star symbol is used ("gross outlier")
Requires the library "stats" to be present.
library("graphic")
library("plot")
library("stats")
x = normal(4000)
theFactor = string("one", 1:1000) | string("two", 1:1000)
theFactor = theFactor | string("three", 1:1000) | string("four", 1:1000)
plotbox(x, theFactor)
Four boxplots in one display.
| Library: | plot |
| See also: | plotdot dispbox |