In [1]:
from lets_plot import *
LetsPlot.setup_html()
In [2]:
from lets_plot.geo_data import *
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
In [3]:
na=regions_country(['usa', 'canada'])
na
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
C:\Temp/ipykernel_5764/3330000130.py in <module>
----> 1 na=regions_country(['usa', 'canada'])
      2 na

NameError: name 'regions_country' is not defined
In [ ]:
na_boundaries=na.boundaries(1)
In [ ]:
ggplot() + geom_polygon(aes(fill='found name'), na_boundaries)
In [ ]:
countries=regions_country().boundaries(1)
countries
In [ ]:
ggplot() + geom_polygon(aes(fill='found name'), countries) + ggsize(900, 400) + theme(legend_position='none')
In [ ]: