pointsto ordination plots. Text will be used if this can be done without overwriting other text labels, and points will be used otherwise. The function can help in reducing clutter in ordination graphics, but manual editing may still be necessary.
orditorp(x, display, labels, choices = c(1, 2), priority, select, cex = 0.7, pcex, col = par("col"), pcol, pch = par("pch"), air = 1, ...)
TRUEfor displayed items or a vector of indices of displayed items. If a logical vector is used, it must have the same length as the scores plotted.
TRUEmeans that item was labelled with text and
FALSEmeans that it was marked with a point. The returned vector can be used as the
selectargument in ordination
orditorpwill add either text or points to an existing plot. The items with high
prioritywill be added first and
textwill be used if this can be done without overwriting previous labels,and
pointswill be used otherwise. If
priorityis missing, labels will be added from the outskirts to the centre. Function
orditorpcan be used with most ordination results, or plotting results from
ordiplotor ordination plot functions (
## A cluttered ordination plot : data(BCI) mod <- cca(BCI) plot(mod, dis="sp", type="t") # Now with orditorp and abbreviated species names cnam <- make.cepnames(names(BCI)) plot(mod, dis="sp", type="n") stems <- colSums(BCI) orditorp(mod, "sp", label = cnam, priority=stems, pch="+", pcol="grey") ## show select in action set.seed(1) take <- sample(ncol(BCI), 50) plot(mod, dis="sp", type="n") stems <- colSums(BCI) orditorp(mod, "sp", label = cnam, priority=stems, select = take, pch="+", pcol="grey")
Run the code above in your browser using DataCamp Workspace