

   boxplot {base}                               R Documentation

   BBooxx PPlloottss

   DDeessccrriippttiioonn::

        Produce box-and-whisker plot(s) of the given (grouped)
        values.

   UUssaaggee::

        boxplot(x, ...)

   AArrgguummeennttss::

          x: an R object.

        ...: methods may have additional arguments.

   DDeettaaiillss::

        This is a generic function.  It currently has a default
        method (`boxplot.default') and a formula interface
        (`boxplot.formula').

   VVaalluuee::

        See the help for `boxplot.default'.

   SSeeee AAllssoo::

        `boxplot.default', `boxplot.formula'.

   EExxaammpplleess::

        ## boxplot on a formula:
        data(InsectSprays)
        boxplot(count ~ spray, data = InsectSprays, col = "lightgray")

        ## boxplot on a matrix:
        mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
                     T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
        boxplot(data.frame(mat), main = "boxplot(data.frame(mat), main = ...)")

