I am using the dbscan
cluster (package fpc
) in R to find clusters on a set of latitudes/longitudes coordinates. I want to find an eps distance that corresponds to a meaningful geographic distance (e.g., a mile or kilometer)
My data looks like this:
Longitude Latitude
1 -87.53163 41.68640
2 -87.59986 41.67341
3 -87.80099 41.95469
4 -87.82481 41.97409
5 -87.67671 41.68832
6 -87.67751 41.73192
Through trial and error, I got a set of clusters that look plausible. In the attached map.
dbscan.clust1 <- dbscan(points, eps=.025, MinPts=20)
What I'd like to do, is find the eps distance that would correspond to a meaningful measurement (i.e., 1 mile = .025 eps)
geodist
from the gmt package.