[R] questions about boxplots

Gabor Grothendieck ggrothendieck at gmail.com
Tue Sep 27 06:18:22 CEST 2005


Try this:

result <- boxplot(Petal.Length ~ Species, iris)
if (length(result$out))
  text(result$group, result$out, result$out, pos = 4, col = "red")

On 9/26/05, Yulei He <yuleih at umich.edu> wrote:
> Hi, there.
>
> I have two questions about using R to create boxplots.
>
> 1. The function boxplot() plots the outliers. How can I label the exact
> values arount these outlier points? Does R have an option allow me to
> do that?
>
> 2. How can I put two boxplots in one x-y axis?
>
> Thanks.
>
> Yulei
>
>
> $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
> Yulei He
> 276 Grove St. Apt 3
> Newton, MA 02466
> 617-796-7834(H)
> 617-432-3428(O)
> 617-432-3435(fax)
> $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list