boxplot(x, ...) # generic function
boxplot(formula, data = NULL, ..., subset, na.action = NULL) ## S3 method for class 'formula'
boxplot(x, ..., range = 1.5, width = NULL, varwidth = FALSE, notch = FALSE, outline = TRUE, names, plot = TRUE, border = par("fg"), col = NULL, log = "", pars = list(boxwex = 0.8, staplewex = 0.5, outwex = 0.5), horizontal = FALSE, add = FALSE, at = NULL) ## Default S3 method
Parameters | Details (source R Documentation) |
---|---|
formula | a formula, such as y ~ grp, where y is a numeric vector of data values to be split into groups according to the grouping variable grp (usually a factor). |
data | a data.frame (or list) from which the variables in formula should be taken. |
subset | an optional vector specifying a subset of observations to be used for plotting. |
na.action | a function which indicates what should happen when the data contain NAs. The default is to ignore missing values in either the response or the group. |
boxwex | a scale factor to be applied to all boxes. When there are only a few groups, the appearance of the plot can be improved by making the boxes narrower. |
plot | if TRUE (the default) then a boxplot is produced. If not, the summaries which the boxplots are based on are returned. |
col | if col is non-null it is assumed to contain colors to be used to colour the bodies of the box plots. By default they are in the background colour. |