Calculation of vectors in bounded ordinates without labels

I would like to draw vectors from the capscale residency using VEGAN . I am familiar with the display ="bp" command, but this adds labels that are obscured by points on the site. Is there a simple way to fix them? I am pleased to add them later, that is, after export and as part of the word for publication.

My code so far looks like this:

 plot(mod, scaling = 3, type="n") with(data, points(mod, display="sites", cex=Pointsize, pch=ifelse(Cat=="Reference",21,19)) ,bg=Cat,) with(data,text(mod,display="bp")) 

Help will be appreciated

+4
source share
1 answer

Use the points() method instead of the text() method:

 points(mod, display = "bp") 

(There should also be no need for with(data) in the last line of code that you are showing.)

Here is an example of reproducibility:

 require(vegan) data(varespec) data(varechem) ord <- cca(varespec ~ ., data = varechem) plot(ord, type = "n", display = "sites") points(ord, display = "sites") points(ord, display = "bp") 

enter image description here

+2
source

Source: https://habr.com/ru/post/1469123/


All Articles