On Wed, 2011-11-23 at 16:02 -0300, Alejo C.S. wrote: > Dear List, > > I can'f figure how to add point labels in the next plot (example from > ?taxondive help page): > > library(vegan) > data(dune) > data(dune.taxon) > taxdis <- taxa2dist(dune.taxon, varstep=TRUE) > mod <- taxondive(dune, taxdis) > plot(mod) > > The points in this plot are diversity values of single sites, and I'd > like to add a label to each one. The plot command don't accept a > "label" argument. > Any tip?
A couple of options: with(mod, text(Species, Dplus, label = rownames(dune), pos = 2, cex = 0.7)) fiddle with pos - see ?text for details. Another option is with(mod, identify(Species, Dplus, label = rownames(dune), cex = 0.9)) where you now click around the points you want to label. See ?identify for further details. HTH G > Thanks in advance. > > Alejo > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.