Skip to content
Prev 18060 / 29559 Next

Help with ENFA in R

Jonathan,

I think you are confusing many aspects here...

The ENFA works on two objects:
* a PCA, which provides the environmental data;
* a vector, which provides the utilization distribution.

1) The PCA is build on the "data" slot of a SpatialPixelsDataFrame, which 
stores all environmental rasters. The "data" slot that we use is itself of 
class 'data.frame'.

2) The utilization distribution is based on the presence points and is also 
stored in a SpatialPixelsDataFrame, which gives the number of points per 
pixel. Again, the ENFA only uses the "data" slot of this 
SpatialPixelsDataFrame. Such map can be created with 'count.points' on a 
object of class SpatialPoints or SpatialPointsDataFrame, and also requires 
the former SpatialPixelsDataFrame which stores the environmental attributes 
(this is just to provide a grid for the 'count.points' function).

Please check every object at each step, and provide reproducible examples 
in case you don't manage to get it work. The examples + vignettes of both 
adehabitatHS and sp are in principle sufficient to run an ENFA without any 
problem.

Best of luck,
Mathieu Basille.


Le 04/16/2013 09:59 AM, JonathanAronson a ?crit :