[R] Error in plot.envfit(ef, p.max = 0.1) : (subscript) logical subscript too long

Gavin Simpson gavin.simpson at ucl.ac.uk
Sun Dec 30 13:16:56 CET 2012

On Sat, 2012-12-29 at 20:40 +0000, Laura Martínez Suz wrote:
> Hello there,
> I'm trying to plot vectors with p<0.1 in a NMDS ordination plot using p.max. Below the scripts I'm using. I guess I'm missing something! could you please give me a hand?
> species<-metaMDS(species_matrix)ef<-envfit(species,environmentaldata_file,permu=999,na.rm=TRUE)efplot(species, dis="sites")plot(ef,p.max=0.1)
> Error in plot.envfit(ef, p.max = 0.1) :   (subscript) logical subscript too long
> Many thanks!
> Laura 		 	   		  

Hi Laura,

Can you send the data to me **off list** so I can run through the code
under the debugger and see what is causing the error? I can see where
the subscripting occurs related to p.max but can't immediately see under
what circumstances the subscript could ever get longer than the object
being subscripted.

I promise to delete the data once I have tracked the problem down.



 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk

More information about the R-help mailing list