This function plots the legend in form of a boxplot. The symbols represent the different levels (e.g. whiskers, median, ...) of the boxplot.
boxplotlegend(X, Y, el, boxinfo, x.shift = 40000, xf = 10000, y.shift = 0.2,
y.scale = 130000, legend.title = "Legend", cex.legtit = 1, logscale = TRUE,
symb = c(1, 1, 16, 3, 3), ssize = c(1.5, 1, 0.3, 1, 1.5), accentuate = FALSE,
cex.scale = 0.8)
Plots the legend with respect to the boxplot and returns the symbols, size and the quantiles used for the legend.
X-coordinates
Y-coordinates
variable considered
from boxplot(el) or boxplotlog(el)
shift in x-direction
width in x-direction
shift in y-direction (from title)
scale in y-direction
title for legend
cex of title for legend
if TRUE plot boxplot in log-scale
symbols to be used (length 5!)
symbol sizes to be used (length 5!)
if FALSE no symbols for the upper values (e.g. upper "hinge", upper whisker) are assigned
cex for text "log-scale" for scale
Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/
Takes the information provided by the argument boxinfo and plots a boxplot corresponding to the values. If there are no upper or/and lower outliers the symbols for the upper or/and lower whiskers will be ignored.
C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.
#internal function, used in SymbLegend
Run the code above in your browser using DataLab