Geographic Polygon Plot#
A US geographic thematical map where states are colored by their U.S. Bureau of Economic Analysis (BEA) region. This example uses polygons
to display geographic shapes with categorical color mapping.
import hvplot.pandas # noqa
gdf = hvplot.sampledata.us_states("geopandas")
gdf.hvplot.polygons(
geo=True,
color='bea_region',
hover_cols=['state', 'pop_density', 'income_range'],
hover_tooltips=[
("State", "@state"),
("Pop. density", "@pop_density /mi2"),
("Median income range", "@income_range")
],
title='US states colored by BEA region (Bokeh)',
)
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.