Dear List,


This is Elaine.

I am using metaMDS in package vegan to plot NMDS.

However, I want to draw the points using different colors according to
island sites.

For example:

island site 1: island B, C, D => blue

island site 2: island A, E, F => green

island site 3: island G, H, J => red



Please kindly advise how to modify the following code to classify the sites
by colors.

Thank you



Elaine



library(MASS)

  library(vegan)

  island.NMDS  <-  metaMDS(island,k=2, distfun  =  betadiver,  distance  =
"sim",trymax=100,zerodist="add")

  plot(island.NMDS,  type  =  "n")



  # species as symbols

  points(island.NMDS, display = 'species', pch = '+', cex = 0.6)



  # sites as text

  text(island.NMDS, display = 'sites')

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-ecology mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

Reply via email to