bpplot2 {GCDkit}R Documentation

Box-Percentile Plot

Description

Displays statistical distribution each of the variables in a data frame using a box-percentile plot (Esty & Banfield 2003).

Usage

bpplot2(x,main="Box-Percentile Plot",sub="",xlab = "",
ylab="",log="y",col="lightgray",horizontal=FALSE,ylim = NULL,axes=TRUE,...)

Arguments

x

data frame with the data to be plotted

main

main title for the plot

sub

sub title for the plot

xlab

label for x axis

ylab

label for y axis

log

which of the axes is to be logarithmic?

col

colour to fill the boxes

horizontal

logical, should be the orientation horizontal?

ylim

optional; limits for the y axis

axes

logical; should be the axis drawn?

...

additional plotting parameters

Details

The box-percentile plot is analogous to a boxplot but the width of the box is variable, mimicking the distribution of the given variable. As in boxplots, the median and two quartiles are marked by horizontal lines.

bpplot2.png

Value

None.

Warning

This function IS NOT Figaro-compatible. It means that the set of diagrams cannot be further edited in GCDkit (e.g. tools in "Plot editing" menu are inactive).

Author(s)

The code represents a modified function 'bpplot' from the package 'Hmisc' by Frank E Harrell Jr. (originally designed by Jeffrey Banfield). Adopted for GCDkit by Vojtěch Janoušek, vojtech.janousek@geology.cz.

References

Esty, WW & Banfield JD (2003) The Box-Percentile Plot. Journal of Statistical Software 8 (17)

Examples

    data(blatna)
    accessVar("blatna")

    windows()
    bpplot2(WR[,"K2O"],main="My box-Percentile Plot",ylab = annotate("K2O"),
        log="",col="khaki",ylim=c(3,4.5))

[Package GCDkit version 6.1 Index]