Hi Chris,
I've just read about the instensity() function, great!
I'd like to ask you if you can provide some codes about since if I try to run it it returns some errors.
Here my code:
animal<-as.telemetry(animal)
projection(animal) <- median(animal)
#create a new variable to test selection during day and nighttime
animal <- annotate(animal)
animal$day <- animal$sunlight>0
animal$night<- animal$sunlight<=0
#after calculating UD with akde and importin my variables as raster files, I fit my model
wRSF_animal <- ctmm:::rsf.fit(animal, UD=UD, R=list(Var1=var1,Var2=var2,Var3=var3), formula=~scale(Var3):night + scale(Var3):day + scale(Var2):night + scale(I(Var2^2)):night + scale(Var2):day + + scale(I(Var2^2)):day + scale(Var1):night + scale(Var1):day + scale(I(Var1^2)):night + scale(I(Var1^2)):day,error=0.1,integrator = "MonteCarlo")
#the model is succesfully fit, but when I try to plot the instensity() it returns some errors
intensity(animal,UD=UD, R=list(Var1=var1,Var2=var2,Var3=var3),RSF=wRSF_animal,variable = Var1)
Error in intensity(animal, UD = UD, R = list(Var1= var1, :
object 'Var1' not found
What should I correct?
Best
Lorenzo