Map with connecting lines

Super Contributor
Super Contributor
Posts: 1,660
Registered: ‎12-15-2015

Map with connecting lines


This visual uses Maps package and Geosphere package to draw a map of Australia and dots on that map finally connecting them with lines. Using sample migration statistics data from different cities within Australia to the city of Melbourne, R visual shows the trend of migration by color coding the lines and shading higher count cities on top of the lower ones.


Prerequisites (The sample .pbix files won't work without installing the following)

1. Install R Engine

Power BI does not include the R engine.  Therefore, a seperate installation is required to install R on your local computer.  


Required R Packages




Tested on

MRO 3.3.1, CRAN 3.3.1

Follow me on Twitter: @AnkitPatira
Connect with me on LinkedIn: Ankit Patira
Posts: 17
Registered: ‎09-29-2015

Re: Map with connecting lines

this is so cool Ankit!

Posts: 40
Registered: ‎08-10-2016

Re: Map with connecting lines

Hi Ankit,


This visual is very impressive. If you consider to convert this or some of your other R-visuals to R-powered-custom visuals, out team will be happy to assist you. 


The visibility of R-powered custom visuals is greater and it is not limited for R-users.