Hello, In a toy example below, there are some outliers which I would like to mark with their rownames. However, it seems that identify(...) does not work together with boxplot? set.seed(1) x<-data.frame(rcauchy(20)) rownames(x)<-letters[1:20] boxplot(x) identify(x,labels=rownames(x)) Thanks for any suggestions, Remigijus mailto:remigijus.lapinskas at maf.vu.lt -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
identify with boxplot
2 messages · Remigijus Lapinskas, John Fox
Dear Remigijus,
At 09:59 PM 2/20/2002 +0100, Remigijus Lapinskas wrote:
In a toy example below, there are some outliers which I would like to mark with their rownames. However, it seems that identify(...) does not work together with boxplot? set.seed(1) x<-data.frame(rcauchy(20)) rownames(x)<-letters[1:20] boxplot(x) identify(x,labels=rownames(x))
You need to supply horizontal coordinates to identify -- e.g., > set.seed(1) > x<-rcauchy(20) > names(x)<-letters[1:20] > boxplot(x) > identify(rep(1,20), x, labels=names(x)) (If you want to get row names from a data frame, that would work too.) John -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._