Ask Your Question

Revision history [back]

The boxplot() function does not include a method to add a linear trend line. The function is intended to create a visual representation of the distribution of a dataset through a box and whisker plot.

If you wish to add a linear trend line, you may want to use a different plotting function, such as plot() or lmplot(), which provide options to add trend lines or regression models to a plot.