How to plot a variable with geographic distance in R?

1291 views r

I would like to plot a simple xy graphic being y=variable and x=geographic distance.

I have data.frame with my data of interest in separate columns (ex: Species$Latitude, Species&Longitude, Species$Variable). All values are numeric.

Something like the attached image. enter image description here Can someone help me? I think it it's easy, but I'm having a hard time figuring it out (so not so easy actually).

answered question

1 Answer


When you have a point of origin, you can use the haversine formule to calculate the distance: Haversine function in R

posted this

Have an answer?


Please login first before posting an answer.