How Do I Add Color to My Convex Hulls

I've created convex hulls for an NMDS plot but I don't know how to change their colors. How would I go about this?

phylum.dat <- read.csv("Phylum data for R.csv", stringsAsFactors = T, header = T, row.names = 1)
diversity(phylum.dat, index = "shannon")
specnumber(phylum.dat) #species number
beta <- vegdist(phylum.dat, "jaccard", binary = TRUE) #jaccard distance
dist(beta) #distance matrix
NMDS <- metaMDS(beta, distance = "jaccard", k = 2)
plot(NMDS, display = "sites", type = "text") #adds labels to plot


ordihull(NMDS,groups=treat,draw="polygon",col= c("red", "blue", "green"), label=F)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.