generate_map_colors {mapchina}R Documentation

Generate map colors by greedy coloring algorithm so that bordering features are colored differently

Description

Generate map colors by greedy coloring algorithm so that bordering features are colored differently

Usage

generate_map_colors(sf)

Arguments

sf

An simple feature dataframe - the shapefile of investigation

Value

An integer vector - the indices of map colors

Examples

generate_map_colors(head(china, 10))


[Package mapchina version 0.1.0 Index]