Description Usage Arguments Details
View source: R/geo_pointplot.R
This function helps you plot georaphy points easily when given a dataframe.
1 2 |
pointdf |
The dataframe contains points information. It must contains columns as follows:
It can contains columns as follows:
|
region |
Default value is FALSE. It can be a string of Chinese administrative area name. |
type |
Default value is FALSE. When set it as True, different type of points will be drawn with different colour. |
map |
The basemap to be chosen. Default value is 'OpenStreet'. It also can be:
|
This function is built based on package 'leaflet' and 'leafletCN'. 'leaflet' is a brilliant package of GIS and 'leafletCN' contains useful China geographical information. This function receives a dataframe contains points and their geographical information of longitude and latitude perhaps as well as other information about points. It returns a map with points on it. Other information can also be added such as administrative area distinction and type of points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.