奥迪Q7语言学习笔记88bifa必发娱乐

在Haval中画地图先从不难的maps包起来。

library(“maps”)

在那几个maps包中有一对数据集,用命令data(package=”maps”),能够看看如下数据:

canada.cities          Database of Canadian cities
county.fips            FIPS county codes for US County Map
countyMapEnv           United States County Map
franceMapEnv           France Map
italyMapEnv            Italy Map
nzMapEnv               New Zealand Basic Map
ozone                  Sample datasets
state.carto.center     United States State Population Cartogram Map
state.cartoMapEnv      United States State Population Cartogram Map
state.fips             FIPS state codes for US 48 State Map
state.vbm.center       United States State Visibility Base Map
state.vbmMapEnv        United States State Visibility Base Map
stateMapEnv            United States State Boundaries Map
unemp                  Sample datasets
us.cities              Database of US cities
usaMapEnv              United States Coast Map
votes.repub            Sample datasets
world.cities           Database of world cities
world2MapEnv           Pacific Centric Low resolution World Map
worldMapEnv            Low resolution World Map

 

画出美利哥各省的界限:

map(‘state’, panel.first=grid())

axis(1,lwd=0)

axis(2,lwd=0)

axis(3,lwd=0)

axis(4,lwd=0)

box()

88bifa必发娱乐 1

标明U.S.的都市:

data(us.cities)

points(us.cities$long, us.cities$lat, pch=19)

88bifa必发娱乐 2

标明人口超过一百万的都会

cities <- us.cities[us.cities$pop > 1000000,]

points(cities$long, cities$lat, pch=19)

text(cities$long, cities$lat, cities$name, col=”blue”, cex=0.8, pos=1)

88bifa必发娱乐 3

 

强大的ggmap中的get_map()能够一本万利得到种种地理或遥感图像数据,可惜今后的google被遮挡,试不了了。

88bifa必发娱乐,上面这一个是用VPN后调用get_map取得的United States地形图图像。

88bifa必发娱乐 4

 

除此以外也足以用OpenStreetMap包。

library(“OpenStreetMap”)

map <- openmap(c(50,-130), c(20,-60),type=”apple-iphoto”)

plot(map)

88bifa必发娱乐 5

 

 

相关文章