Hi,
I am working on CTMM variogram vignette and I faced an unexpected behaviour in the last part of the code following:
###
setwd("~/Documents/R/wd/ctmm")
library(ctmm)
dataDF<-read.csv("~/R/csv/m04.csv")
m04 <- as.telemetry(dataDF,timezone="GMT",projection=NULL)
plot(m04, type="o", main=" Relocations, col="blue")
vg.m04 <- variogram(m04)
level <- c(0.5,0.95) # 50% and 95% CIs
xlim <- c(0,12 %#% "hour") # 0-12 hour window
plot(vg.m04,xlim=xlim,level=level)
plot(vg.m04,fraction=0.65,level=level)
### here the problem begins
variogram.fit(vg.m04, CTMM=ctmm(),name="GUESS", interactive = TRUE, fraction=0.5)
FITS <- ctmm.select(dataDF,GUESS,verbose=TRUE)
The sliders that should be shown after "variogram.fit" function be applied doesn't appeared neither "guesstimate" button. But the related variogram image was generated. Also the "GUESS" variable wasn't created by the function and the next step (model selection) falls into error.
# the error message
Error in ctmm.select(dataDF, GUESS, verbose = TRUE) :
object 'GUESS' not found
I had tried to run through a "hard way" method, as It is in the vignette, and
everything works fine for me. I am wondering if there is a bug, something
that I put out of the place in the "easy way" method or something that I missed?
As I am a beginner with ctmm package any help will be very welcomed.
Best regards,
Sergio.