I think vegan decides to switch from text to points as the number of samples increases.
To force having points, it's necessary to modify the R code that runs the analysis (qiime/support_files/R/dbrda.r), replacing its last line:
plot(capscale.results, display=c("wa", "bp"))
with the following lines:
plot(capscale.results, display="wa", type="point")
text(capscale.results, col="blue", display="bp")
Moreover, if Marilou wants to color the samples according to the
Resistotype_all column, it's possible to do so by eg doing this instead:
# More colors in
http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdfcolors <- c("coral", "coral4", "mediumblue", "darkgoldenrod2",
"darkolivegreen3", "darkorchid1", "red2")
# Plot nothing, but get the figure
plot(capscale.results, type="none")
# Now plot samples, coloured by the factors in the column (-c option to script)
points(capscale.results, display ="wa", col=colors[factor],
pch=21, bg=colors[factor])
# And arrows for factors
text(capscale.results, col="blue", display="bp")
# Include a legend that doesn't clash with points
legend("bottomleft", legend=levels(factor), bty="n",
col=colors, pch=21,
pt.bg=colors)
In general, it's possible to heavily customize ordination plots, but it's not really easy...
The plot we get is attached.
Thanks,
Sophie