R Tutorial: Common types of spatial data
Skills:
Data Literacy70%
Key Takeaways
The video tutorial covers common types of spatial data, including point data, line data, polygon data, and raster data, using R programming language and DataCamp's course on visualizing geospatial data.
Full Transcript
the health sales data you have been working with is an example of point data with point data a location of points in our case a house location and each point has some Associated data in our case price and house attributes while point data is common there are some other types of spatial data that you'll come across line data polygons data and rest our data when the data is associated with a collection of points in a line we call it a line data to describe the line we need multiple points and we assume that they're connected with straight lines the data isn't associated with any single point but with the whole collection of points for example our lines might describe streams and for each stream we know its name and length polygon data occurs when the data is associated with an area to describe the area we take a collection of points and join them with lines to enclose a polygon the data is associated with the enclosed area for example a farmer might have polygons that described as fields each polygon might have a name an area and a crop finally raster data also called grid data is a little different a regular grid is specified by an origin and steps in the x and y axes data is associated with every cell in the grid this commonly occurs in remote sensing where a satellite is used to image the Earth for example for each cell in our grid we might have the type of vegetation it contains its elevation and slope to get a feel for these other types of spatial data and the final exercises for the chapter you'll work with some polygon and raster data related to the house sales data in Corvallis we have wards areas that define roughly equal numbers of people that are each represented by a councillor on the city council these wards are described by polygons and provide a useful geographical breakdown of the city to provide a higher level summary of house sales the ward sales data frame describes the ward polygons and some summaries at the ward level like average sales price and number of sales polygons are described by a collection of points in this data frame each point is a row since it takes many rows to describe the shape of a single ward you can see the summary data is repeated many times the columns group and order are there to help with two tricky parts of drawing polygons the first tricky part of drawing polygons is that order matters the same set of points joined in two different orders will result in two different polygons the second tricky part a single area might need multiple polygons to describe it for example one of our wards might have two pieces divided by a river or a hole like a lake that is excluded as an example of raster data you'll work with output from a model that predicts the price of a three bedroom two full bathroom 1400 square foot dwelling an average condition this will help us explore which areas are more expensive than others for the same house in the Preds data frame each row as a cell and a spatial grid over Corvallis the lawn and lac columns specify the coordinates at the center of the cell and the predicted price column the sales price predicted at this location
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/visualizing-geospatial-data-in-r at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
The house sales data you have been working with is an example of point data. With point data our locations are points, in our case, a house location, and each point has some associated data, in our case, price and house attributes.
While point data is common there are some other types of spatial data that you'll commonly come across: line data, polygon data and raster data.
When the data is associated with a collection of points in a line, we call it line data. To describe the line, we need multiple points, and we assume they are connected with straight lines. The data isn't associated with any single point, but with the collection of points. For example, our lines might describe streams, and for each stream we know its name and length.
Polygon data occurs when the data is associated with an area. To describe the area we take a collection of points and join them with lines to enclose a polygon. The data is associated with the enclosed area. For example, a farmer might have polygons that describe his fields. Each polygon might have a name, an area and a crop.
Finally, raster data, also called grid data, is a little different. A regular grid is specified by an origin and steps in the x and y axes. Data is associated with every cell in the grid. This commonly occurs in remote sensing, where a satellite is used to image the earth. For example, for each cell in our grid, we might have the type of vegetation it contains, its elevation and slope.
To get a feel for these other types of spatial data, in the final exercises for the chapter, you'll work with some polygon and raster data related to the house sales data.
In Corvallis, we have wards, areas that define roughly equal numbers of people that are each represented by a Councillor on the cit
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
More on: Data Literacy
View skill →
🎓
Tutor Explanation
DeepCamp AI