Realization of Map filling and layer overlay of scatter Map by R language Visualization
The main content of this article is to explain "R language visualization to achieve map filling and scatter map layer overlay", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "R language visualization to achieve map filling and scatter map layer overlay" bar!
Today I will share with you about how to add a scatter chart to the map layer.
Scatter maps need accurate longitude and latitude information to map on the superimposed layer, so we choose the provincial profile map of China and the longitude and latitude of provincial capitals for case demonstration.
Load package:
Library (ggplot2)
Library (plyr)
Library (maptools)
Library (sp)
Import the map of China's provincial boundaries:
China_map