53 choropleth
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import leafmap
In [3]:
Copied!
data = leafmap.examples.datasets.countries_geojson
data = leafmap.examples.datasets.countries_geojson
Available classification schemes:
- BoxPlot
- EqualInterval
- FisherJenks
- FisherJenksSampled
- HeadTailBreaks
- JenksCaspall
- JenksCaspallForced
- JenksCaspallSampled
- MaxP
- MaximumBreaks
- NaturalBreaks
- Quantiles
- Percentiles
- StdMean
- UserDefined
In [4]:
Copied!
m = leafmap.Map()
m.add_data(
data, column="POP_EST", scheme="Quantiles", cmap="Blues", legend_title="Population"
)
m
m = leafmap.Map()
m.add_data(
data, column="POP_EST", scheme="Quantiles", cmap="Blues", legend_title="Population"
)
m
Out[4]:
In [5]:
Copied!
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="EqualInterval",
cmap="Blues",
legend_title="Population",
)
m
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="EqualInterval",
cmap="Blues",
legend_title="Population",
)
m
Out[5]:
In [6]:
Copied!
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="FisherJenks",
cmap="Blues",
legend_title="Population",
)
m
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="FisherJenks",
cmap="Blues",
legend_title="Population",
)
m
Out[6]:
In [7]:
Copied!
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="JenksCaspall",
cmap="Blues",
legend_title="Population",
)
m
m = leafmap.Map()
m.add_data(
data,
column="POP_EST",
scheme="JenksCaspall",
cmap="Blues",
legend_title="Population",
)
m
Out[7]: