leafletZH provides mapping functionalities, including adding area polygons, customizable choropleth layers for cities and provinces, and Amap tile layers. It features tools for calculating polygon areas, along with datasets for Chinese cities and provinces, and coordinate conversion between different systems.
You can install this package from CRAN, or the development version from GitHub:
# CRAN version
install.packages('leafletZH')
# Or Github version
if (!require('devtools')) install.packages('devtools')
devtools::install_github('Damonsoul/leafletZH')
Docs and examples at: https://damonsoul.github.io/leafletZH/
The province and city data are sourced from Aliyun DataV Atlas.
This package is released under the MIT license. Please see the LICENSE file for more details.
Contributions are welcome! Please submit a pull request or open an issue on the GitHub repository.
This package was created by Damonsoul.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.