Re: [R] Boxplot Labels OK

2013-04-10 Thread Jose Iparraguirre
Beatriz, In this case, use the car package and run the following: > bp <- Boxplot(DATA$ave, data= DATA, main= "Average Size", labels=DATA$num, > Id.method=c("y")) This will print out the labels 211 & 225 beside the outlier points. As you can see, the instruction assigns the values in the num c

Re: [R] Boxplot Labels OK

2013-04-09 Thread Rui Barradas
zález Domínguez Cc: r-help-ow...@r-project.org ; R Help 1 ; R Help 2 Subject: Re: [R] Boxplot Labels OK Hello, The answers you had in another thread could lead you to bp <- boxplot(DATA$ave, data= DATA, main= "Average Size") idx <- which(DATA$ave %in% bp$out) text(x= bp$group, y=

Re: [R] Boxplot Labels OK

2013-04-09 Thread Rui Barradas
Hello, The answers you had in another thread could lead you to bp <- boxplot(DATA$ave, data= DATA, main= "Average Size") idx <- which(DATA$ave %in% bp$out) text(x= bp$group, y= bp$out, labels= DATA$num[idx], cex = 0.7, pos = 4) Hope this helps, Rui Barradas Em 09-04-2013 17:31, Beatriz Gonzá

Re: [R] Boxplot Labels

2013-04-09 Thread David L Carlson
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of John Kane > Sent: Tuesday, April 09, 2013 10:45 AM > To: Beatriz González Domínguez; R Help; r-help@r-project.org > Subject: Re: [R] Boxplot Labels > > p <- boxplot(dat1$ave, data= da

Re: [R] Boxplot Labels

2013-04-09 Thread Rui Barradas
Hello, The construct data.frame(cbind(...)) is not at all needed, the following is much better. dat1 <- data.frame(num, ave) Also, I've modified the text() call a bit, in order to have R tell the dat1$num corresponding to the (unique) max of ave, and with an extra argument, pos. This would

Re: [R] Boxplot Labels

2013-04-09 Thread John Kane
p <- boxplot(dat1$ave, data= dat1, main= "Average Size", yaxt = "n") text(1.1, , y = max(dat1$ave), label = "26", cex = .7) but I don't understand #I would like the labels that appear in the boxplot to be DATA$num values. You want 26 values potted? John Kane Kingston ON Canada > ---

Re: [R] Boxplot Labels

2013-04-09 Thread Jose Iparraguirre
Estimada Beatriz, If you use the Box.plot function in the car package (notice that here it's Box.plot, not box.plot), and add the argument id.method=c("identify"), it should work. You only need one instruction: R> library(car) R> bp <- Boxplot(DATA$ave, data= DATA, main= "Average Size",id.meth