ctmm-initiative / ctmm

Continuous-Time Movement Modeling. Functions for identifying, fitting, and applying continuous-space, continuous-time stochastic movement models to animal tracking data.
http://biology.umd.edu/movement.html
47 stars 12 forks source link

Graphical representation and shape file of bootstrapped akde #40

Closed tdokhelar closed 3 years ago

tdokhelar commented 3 years ago

Hello,

Is there is a way to obtain both a graphical representation and to write a shape file from a bootstrapped akde object ?

Both these function seems to do not support bootstrapped object. Indeed, the plot function runs without error but gives me an empty plot and I'm getting this error message whenever I try to run the differents writeShapeFile functions : Error in seq.default(0, 1, length.out = ncol(z)) : argument 'length.out' must be of length 1

Thanks in advance !

chfleming commented 3 years ago

How are you calling this function? I just tested ctmm.boot() and am not getting any issues with plotting the resulting AKDEs. It should be used to improve the output of ctmm.fit() or ctmm.select(), and then fed into akde() as you would any other model fit object. I can add an example to associated help file.

tdokhelar commented 3 years ago

Thanks for your help ! I was trying to use directly the bootstrapped object into the plot and writeShapeFile functions without putting it in the ctmm.fit function !