Takes an object produced by points_to_polygon(), and
creates the corresponding choropleth map. The given clustering is according
to the Fisher-Jenks algorithm. This commonly used method for choropleths
seeks to reduce the variance within classes and maximize the variance
between classes.
choose between static ('plot' is default) and interactive
map ('view')
n
number of clusters (default is 7)
legend_title
title of legend
palette
palette name or a vector of colors. See
tmaptools::palette_explorer() for the named palettes.
Use a "-" as prefix to reverse the palette. The default palette is "viridis".