nrennie / nrennie.github.io-comments

Repository to host Utterances for blog.
2 stars 0 forks source link

blog/2022-12-17-r-packages-for-visualising-spatial-data/ #3

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

R packages for visualising spatial data | Nicola Rennie

Throughout the #30DayChartChallenge I made most of my maps with R. This blog post details the R packages I find myself using most often when visualising spatial data.

https://nrennie.rbind.io/blog/2022-12-17-r-packages-for-visualising-spatial-data/

nrennie commented 1 year ago

The broken link to my blog post on the #30DayMapChallenge has now been updated: https://nrennie.rbind.io/blog/2022-11-30-30-day-map-challenge-2022/

LeilaBarmoudeh commented 1 year ago

the second code for the first map in the "Three dimensional maps" section has the following error

Error in as.double(y): cannot coerce type 'S4' to vector of type 'double' Traceback:

  1. plot(elev_data, axes = FALSE, horizontal = TRUE)
  2. plot.default(elev_data, axes = FALSE, horizontal = TRUE)
  3. xy.coords(x, y, xlabel, ylabel, log)
nrennie commented 1 year ago

Thanks so much for letting me know - there's a missing library(raster) here. I've updated the example :)