[R-sig-Geo] Adding great circle routes as polylines in Leaflet

Kent Johnson kent3737 @ending from gm@il@com
Tue Sep 4 12:25:52 CEST 2018


On Tue, Sep 4, 2018 at 12:18 AM, Dhiraj Khanna <dhirajkhanna using gmail.com>
wrote:

> @Kent Johnson <kent3737 using gmail.com> yes, this is shipping data and you are right, great circle routes are not the best visualization. The problem I am facing is that I have oil trade happening over a period of time from various ports that I need to visualize. Over the selected period of time, there are hundreds of voyages being undertaken by ships. Plotting them all as gc routes looks ugly. My approach has been to classify these ports into regions, which I drew using mapedit and saved them as SF polygons. I then calculated their centroids and those are the coordinates in the ByRoute dataframe. Would appreciate your comments on any other visualization which you think might be appropriate.
>
> If your primary interest is to visualize the flows (not the geography)
then a circle plot might work well. Here is an example showing migration
flows:
https://gjabel.wordpress.com/2016/05/18/updated-circular-plots-for-directional-bilateral-migration-data/
made with
https://cran.r-project.org/web/packages/circlize/index.html

Kent


> Regards
> Dhiraj Khanna
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list