November 2018
Beginner to intermediate
354 pages
6h 59m
English
Now, we will plot point data on polygon data. For doing so, we will first plot SpatialPolygonsDataFrame (containing polygons) and then will add SpatialPointsDataFrame (containing points) using points(). We do so in the following way:
# Adding point data on polygon dataplot(map_bd)points(bd_val, pch=19, col="blue")
This gives us the following map where points are overlaid on the polygon:

Read now
Unlock full access