I'm trying to run the following code using the "world" dataset from spDataLarge:
data(package = "spData")
ggplot(data = world) +
I have no problems loading any of the libraries or data, but when I run the geom_sf() function, I get the following error:
Don't know how to automatically pick scale for object of type standardGeneric. Defaulting to continuous.
Error: All columns in a tibble must be 1d or 2d objects:
rlang::last_error()to see a backtrace
I have the latest version of R, and I've tried uninstalling and re-installing R and running the same code without any luck. Even after I run devtools::install_github("tidyverse/ggplot2"), the version of ggplot on my machine is 3.0, but I need 3.1 to run geom_sf(). Is there another way to install the development version of ggplot without using devtools::install_github("tidyverse/ggplot2")? Or, is there a different reason why I might be having this issue?