[R] Boxplot labels

bogdan romocea br44114 at gmail.com
Thu Oct 20 22:50:17 CEST 2005


Here's one approach.

values <- c(rnorm(1000,-5,1),rnorm(1000,10,0.5))
boxplot(values)
text(1,0,labels="better use violin plots",col="red")
#------
require(vioplot)
vioplot(values)
text(1,0,labels="better than box plots",col="red",pos=4)


> -----Original Message-----
> From: Keith Sabol [mailto:sabolk at hotmail.com]
> Sent: Thursday, October 20, 2005 2:46 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Boxplot labels
>
>
> I am creating boxplots from a dataframe and would like to add to the
> standard output a marker representing the value from a
> particular row in the
> dataframe.
>
> .....And I apologize if the solution is as trivial as it
> seems it should be.
>
> Thanks for any assistance.
>
> Keith
>
> ______________________________________________
> 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