Introduction to R and RStudioProject management in RStudioIntroduction to R
Figure 1
Data Structures
Exploring Data Frames & Data frame Manipulation with dplyrExploring Data framesData frame Manipulation with dplyr
Figure 1
Source: Data
Carpentry R for Social Scientists
Introduction to visualisationIntroduction to VisualisationWriting data
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Introduction to Geospatial Concepts
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Open and Plot Vector Layers
Figure 1
Explore and plot by vector layer attributesQuery Vector Feature Metadata
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Plot multiple shapefiles
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Handling Spatial Projections & CRS
Figure 1
Figure 2
Figure 3
Figure 4
Intro to Raster Data
Figure 1
Figure 2
Figure 3
Figure 4
Plot Raster Data
Figure 1
Figure 2
Figure 3
The plot above uses the default colours inside ggplot2
for
raster objects. We can specify our own colours to make the plot look a
little nicer. R has a built in set of colours for plotting terrain,
which are built in to the terrain.colors()
function. Since
we have three bins, we want to create a 3-colour palette:
Figure 4
Figure 5
The axis labels x and y are not necessary, so we can turn them off by
passing element_blank()
to the relevant part of the
theme()
function.
Figure 6
Figure 7
Reproject Raster Data
Figure 1
Our results are curious - neither the Digital Terrain Model
(DTM_TUD_df
) nor the DTM Hillshade
(DTM_hill_TUD_df
) plotted. Let’s try to plot the DTM on its
own to make sure there are data there.
Figure 2
Figure 3
Figure 4
Raster Calculations
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Notice that the range of values for the output CHM starts right below 0 and ranges to almost 100 meters. Does this make sense for buildings and trees in Delft?
Figure 6
Figure 7
Work with Multi-Band Rasters
Figure 1
Figure 2
Figure 3
And a raster plot of the second band:
Figure 4
Figure 5
Import and Visualise OSM Data
Figure 1
The result looks like this: