Administrative regions map of a country with ggmap and ggplot2

后端 未结 2 1234
猫巷女王i
猫巷女王i 2020-11-30 18:13

I can make USA state level unemployment graph with the following code.

library(XML)
library(ggplot2)
library(plyr)
library(maps)

unemp <-
  readHTMLTable         


        
2条回答
  •  没有蜡笔的小新
    2020-11-30 18:17

    Have you tried http://www.diva-gis.org/gdata? That should give you Shapefiles with state/district boundaries for Pakistan.

    The maptools package has functions that let you read and convert Shapefiles to a dataframe that can be used to lay out the boundary polygons.

提交回复
热议问题