[R-sig-Geo] Plot Great Circle path on e.g. wrld_simpl?

Nick Matzke nickmatzke.ncse at gmail.com
Fri Jun 26 06:16:11 CEST 2015


Hi,

Is there an easy way to plot a Great Circle path between two points on a
world map, e.g. wrld_simpl?

E.g., something like this, but Great Circle instead of the flat-map
straight path:

===================================
library(maptools) # for e.g. wrld_simpl

data(wrld_simpl)
plot(wrld_simpl)

# This plots the flat-map straight line, but
# I would like a plot of the Great Circle path
segments(x0=-120, y0=45, x1=0, y1=55, lwd=2)
===================================


I googled around some but didn't find anything super-obvious.

Cheers!
Nick

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list