Skip to content

Graphical parameters in metaMDS

2 messages · Gian Maria Niccolò Benucci, Jari Oksanen

#
On 21/05/10 20:49 PM, "Gian Maria Niccol? Benucci" <gian.benucci at gmail.com>
wrote:
Gian,

I know the function metaMDS (because I wrote it), but I have no idea about
ordisymbols -- except that I've been thinking to write a function with that
name. I know is that you can use vegan function points() for the task. the
points() function accepts all usual graphical arguments, including pch, cex,
col etc. However, it doesn't have legend argument,  but you msut supply it
separately. Neither does it know 'env.table'. Looking at your code above, I
guess (but this is guessing: I don't know ordisymbols) the same effect can
be reached with

plot(NMS.2, type = "n")
with(env.table, points(NMS.2, pch=as.numeric(Host)) ## add pch, col etc...
with(env.table, legend("topleft", leg=levels(Host),
pch=seq_along(length(Host)))

Of course, all of this is completely untested.

Cheers, Jari Oksanen

PS. When you ask for the advice on non-standard commands defined only in
packages, you should tell us what are the packages involved. In this case,
metaMDS and ordisymbol are in different packages so that you need extra care
in their interface, and you should also express this in your query.