[R] Change color of the boxplot outliers

Marc Schwartz marc_schwartz at me.com
Sat Sep 7 17:57:03 CEST 2013


On Sep 7, 2013, at 10:44 AM, li li <hannah.hlx at gmail.com> wrote:

> Hi all,
>  Is there a way to change the color of the boxplot plots outliers?
>  Thanks.
>    Hanna



If you review ?boxplot, you will see that ?bxp is listed in the See Also section and is used for the actual plotting. In ?bxp is a description of the various parameters for the plot.

Thus:

  set.seed(1)
  boxplot(rexp(50), outcol = "red")


Regards,

Marc Schwartz



More information about the R-help mailing list