I am trying to calculate the mean squared displacement of various longitude and latitudes from a centroid latitude and longitude to show how the spread of an invasive ant progressed through time.
Here is my centroid:
56.6558 3.097367
Here is the rest of my long/lat data
-31.90000 26.88330`
-29.31670 27.48330
50.83600 4.38500
-33.91667 18.41667
I am slightly confused on how to progress and would appreciate the help! Thanks!
Here is my current data:
first<-invasion[2:8,] #1906-1910
first<-first[,2:3]
head(first)
Long Lat
2 34.20000 -90.56670
3 -31.90000 26.88330
4 -29.31670 27.48330
5 50.83600 4.38500
6 203.34400 17.54000
7 -33.91667 18.41667
fx<-mean(first$Long)
fy<-mean(first$Lat)
coord06<-cbind(fx,fy)
coord06all<-cbind(first$Long, first$Lat)