powered by
Generate map colors by greedy coloring algorithm so that bordering features are colored differently
generate_map_colors(sf)
An simple feature dataframe - the shapefile of investigation
An integer vector - the indices of map colors
# NOT RUN { generate_map_colors(head(china, 10)) # }
Run the code above in your browser using DataLab