Lesson 2: Vector Data Part 2

Author

Claudiu Forgaci

Episode 8: Plot multiple shapefiles

Videos Credits: Claudiu Forgaci

This is the following episode from the previous one.

Load the data

Check that you have the sf package loaded in your environment.

Plotting Multiple Vector Layers

An introduction to ggplot

Plot multiple layers part 2

Making the legend

Plot multiple layers part 3

Using Rainbow

Question about rainbow appearance

Why does no rainbow appear?

Plot multiple layers part 4

Question about rainbow

Rainbow doesn’t work that well, why?

Question about the scale placement

Can the scale be before the geo funcion or after it?

Question about using scale clr manual

What the result would be if you use the scale clr manual for measure?

Challenge: Customize point shapes

Challenge description

Challenge solution

Challenge: Visualising multiple layers with a custom legend

Challenge description

Challenge solution

Tip: Uppercase and lowercase letters

Common errors of uppercase and lowercase letters during the previous challenge

Episode 9: Handling Spatial Projections & CRS

Introduction to projections and CRS handling

Working with spatial data from different sources

Reading shapefile

Reading shapefile part 2

Tip: Error happens

An error appears. What might be the reason?

Tip: CRS differences

Discussing the CRS differences

Challenge: Plot multiple layers of spatial data

Challenge description

Challenge solution

Export a shapefile

st write function

Tip: Function name

Name of the function

Question about the axis numbers

What do the numbers along the vertical and horizontal axis mean?

Question about the unknown parameters

Some parameters inside the plotting code are unknown. What are they?