I'm new in spatio-temporal analysis in r so I don't know if what I'm doing is right. I have a lot of spatio-temporal data and I would like to plot a spatio-temporal sample variogram.
My problem is that I don't really understand how variogramST
(package: gstat) works. Is spacelag
in km or what?
This is what I've done by now:
var_st <- variogramST (datast~1, data=DF, tunits="days", tlags=seq(0, 93, by= 31),
boundaries=seq(0, 100, by=25), na.omit=T, assumeRegular=F)
My second question is:
Is it plotting variogram at exact distance 25, 50, 75, 100? For example, if two cities have a distance e.g 12 is variogramST
considering it? Or is it just considering pairs of observation with exact distance 25, 50, 75, 100?
Moreover, I have monthly data. I read that in this case the best option is to choose tunits="days"
and I choose tlags=seq(0, 93, by= 31)
, is it right? I don't know how to deal with it otherwise.
Thank you very much for all of those people who are going to answer me!