Skip to content
Prev 3640 / 7420 Next

nMDS plot with points of different size

On Thu, 2013-03-07 at 15:37 +0000, Mark Fulton wrote:
`points()` is vectorised and can take numeric vectors for relevant
arguments. Hence you don't need the `for()` loop here. Just generate the
vector of cex values you want and pass the whole thing plus all
coordinates to `points()`:

cex <- bmin+(bmax-bmin)*z
points(x, y, cex = cex)

should be sufficient.

HTH

G