Only for log = FALSE, defines the limits of the y-axis if the default limits based on the range of the data are unsatisfactory.
An alternate title can be displayed with ylab = "text string", see Examples. A title may be provided, see Examples.īy default the character string for x is used for the y-axis title. See Details below.Ī title for the x-axis, by default none is provided. The default is to notch the boxplots, to suppress the notches set notch = FALSE. Setting wend = 0.02 plots the whisker ends at the 2nd and 98th percentiles.ĭetermines if the boxplots are to be “notched” such that the notches indicate the 95% confidence intervals for the medians. By default these are at the 5th and 95th percentiles of the data. The locations of the whisker-ends have to be defined. To display the data with logarithmic (y-axis) scaling, set log = TRUE.
See Details below for when by is undefined. The name of the factor variable to be used to subdivide the data. Label = NULL, plot.order = NULL, xpos = NA, width, Ylab = deparse(substitute(x)), ylim = NULL, main = "", A variety of other plot options are available, see Details and Note below.īwplots(x, by, log = FALSE, wend = 0.05, notch = TRUE, xlab = "", Optionally the y-axis may be scaled logarithmically (base 10).
#Box and whisker plot in r series
Plots a series of vertical box-and-whisker plots (Garrett, 1988) where the individual plots represent the data subdivided by the value of some factor. Plot Vertical Box-and-Whisker Plots Description