SophieBlatter / Project_Daniel_Sophie

Semesterproject on movement data for the Pattern and Trends module 2024
0 stars 1 forks source link

First plot in index.qmd #7

Open ratnanil opened 3 months ago

ratnanil commented 3 months ago

On lines 80 and 81 in index.qmd, you write:

plot(filtered_data)
tm_shape(filtered_data)  +tm_dots()+ tmap_mode("View")

The first of these two lines plots the cross correlation of an entire dataframe, I'm sure this is not what you want. The issue of the second plot I already stated in #5

ratnanil commented 3 months ago

In "plot" mode, you dont have a background map. You can add the border of switzerland for context like so:

library(rnaturalearth)
tmap_mode("plot")

ch <- rnaturalearth::ne_countries(scale = 50, country = "Switzerland")

tm_shape(ch) + tm_polygons() +
tm_shape(filtered_data)  +tm_dots()