R Language boxplot

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • 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

ParametersDetails (source R Documentation)
formulaa 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).
dataa data.frame (or list) from which the variables in formula should be taken.
subsetan optional vector specifying a subset of observations to be used for plotting.
na.actiona 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.
boxwexa 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.
plotif TRUE (the default) then a boxplot is produced. If not, the summaries which the boxplots are based on are returned.
colif 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.


Got any R Language Question?