Displaying 2 results from an estimated 2 matches for "groupz".
Did you mean:
groups
2013 May 17
1
Problem with ordiellipse coloured factor in Vegan
...black",
"blue","yellow","magenta")
palette(col.list)
plot(ord$points, col = Metab_metadata$Day+2,pch=symbol, xlim=c(-0.3,0.35))
legend(.28,.25, c("0", "8", "16"),fill = c(2, 10,18))
# draw dispersion ellipses around data points
groupz <-c(2,10,18)
for(i in seq(groupz)) {
ordiellipse(ord, Metab_metadata$Day, kind = "sd", label = T,col=groupz[i],
show.groups=groupz[i])
}
Now here I get the error
Error in text.default(...) : no coordinates were supplied (But sometimes
same code works. I am not sure what am I doing...
2011 Aug 10
1
Plotting Ellipses and Points of Matching Colors in an Ordination
Hello, R-Help -
I am trying to plot the results of an ordination from package vegan. The
tricky part for me right now is getting the colors of the ellipses denoting
the 95% confidence intervals of the group centroids to match the colors of
the points for those same groups.
>From and earlier post, I saw the code to make a plot of the ordination using
different colors for my different groups.