课程: Data Visualization in R with ggplot2
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Building a map manually
- [Instructor] We've explored creating many different map types using the ggmap library, but sometimes you may want to create a very simple map as the basis for another visualization. For example, I might want a map of the United States that simply shows the outline of each state with no other information. A map like this can be the starting point for many other visualizations like a choropleth map. In this video, we'll explore how to build this map, and then in the next video, we'll convert it to a choropleth map. We'll use a function called map_data from the ggplot library that allows us to retrieve the set of points that define a region. Let's give it a try in R. I'll begin by using the map data function to load a map of the United States. I'm going to call it states, and then load in map data consisting of state objects. When I do that, I get a prompt that the map's package is required to use the map data function. Well, I'd like to install it, so let's go ahead down here and say,…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
-
-
(已锁定)
Visualizing data with maps2 分钟 14 秒
-
(已锁定)
Obtaining a Google Maps API key5 分钟 19 秒
-
(已锁定)
Working with map data2 分钟 32 秒
-
(已锁定)
Geocoding points3 分钟 26 秒
-
(已锁定)
Changing map types1 分钟 19 秒
-
(已锁定)
Plotting points on a map5 分钟 6 秒
-
(已锁定)
Building a map manually4 分钟 21 秒
-
(已锁定)
Creating a choropleth map6 分钟 53 秒
-
(已锁定)
-
-