I am wondering if it possible to create a map similar to the flight paths map for the U.S. for other countries? https://plot.ly/r/lines-on-maps/
Instead of having the U.S. as a background, I am interested in showing just Afghanistan, but I am not clear if plotly supports the other countries and how exactly to code it with options like “locationmode” and “scope”.
In that example it shows North America as the scope. Thus, you could set scope to world (https://plot.ly/r/reference/#layout-geo-scope), center it, and scale accordingly. Something like:
Thank you for the different options to play with. With respect to the first example, I cannot seem to get it to work, it just draws the title.
For the second, that one is working and I am going to play with them some more to see what I can do. I really appreciate the help and the code examples!
With the one that only shows you the title, can you open it in an external browser? Also, are you using the latest version of RStudio (or RStudio preview)? Possibly on a Windows machine?