[R-sig-eco] ordipointlabel with shortened names

Kevin McCluney kemcclun at ncsu.edu
Tue Jun 18 21:58:56 CEST 2013


Hi,

I've been trying to use ordipointlabel() to add taxa names to an nmds
(metaMDS) graph in VEGAN.  I can add the full names from the database, but I
would like to use the shortened names I created using make.cepnames().  I've
tried:

pl3v2 <- ordipointlabel(mds, dis="sp", add = TRUE, lab=shnam)

But I get the following error message:

Error in text.default(lab, labels = labels, col = col, cex = cex, font =
font,  : 
  graphical parameter "lab" has the wrong length
In addition: Warning message:
In text.default(lab, labels = labels, col = col, cex = cex, font = font,  :
  NAs introduced by coercion

I've also tried "labels" instead of "lab" and I get:

Error in text.default(lab, labels = labels, col = col, cex = cex, font =
font,  : 
  formal argument "labels" matched by multiple actual arguments

I guess this function doesn't yet work like orditorp?  Can anyone think of a
workaround?

I've tried orditkplot:

orditkplot(pl3v2, dis = "sp")

But I get this error:

Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class =
"tclObj") : 
  [tcl] bad screen distance "-NaN".

I've also tried using identify(), but I have a few taxa that are literally
right on top of each other and try as I might, I can't get all of the taxa
that are on top of each other to show up.

Any help would be appreciated.  Thanks!

Kevin E. McCluney, PhD
Post-doctoral Research Scholar
Department of Entomology
North Carolina State University



--
View this message in context: http://r-sig-ecology.471788.n2.nabble.com/ordipointlabel-with-shortened-names-tp7578224.html
Sent from the r-sig-ecology mailing list archive at Nabble.com.



More information about the R-sig-ecology mailing list