Dear all,

I have just sent an enquiry but probably I hadn’t expressed myself properly. 

Could anyone help me with the following?

When I run the code on my data I get a boxplot with outliers identified by numbers 200 & 201.
However, what I would like is to label these outliers with their corresponding “DATA$num” values of the data frame. 
In this example, the outliers should be labelled as: 211 & 225

Do you have any idea of how I could do this?

Please, if you need any more details just get in touch.

Many thanks in advance! 

## R CODE
#DATA
num <- as.numeric(200:225)
ave <- c(0.5, 1, 1.6, 2, 2, 2.3, 2.5, 2.4, 3, 3.2, 3.3, 7.2, 4, 4.8, 3.5, 2.7, 3.1, 2.8, 4.1, 2.0, 2.5, 2.1, 3.4, 2.5, 2.6, 7)
DATA <- data.frame(cbind(num, ave))
rm(num, ave)

#BOXPLOT
x11()
bp <- boxplot(DATA$ave, data= DATA, main= "Average Size")
identify(x= bp$group, y= bp$out, labels= DATA$num, cex = 0.7)

Bea
	[[alternative HTML version deleted]]

