I recently got into R programming for spatial analysis and was trying to run code to create a projected map using an orthographic projection. Thing, is, I cannot get past the '+' sign. Here's the code and error.
library(ggplot2)
world <- map_data("world")
world +
coord_map("orthographic", orientation = c(39, -98, 0))
Error in world + coord_map("orthographic", orientation = c(39, -98, 0)) : non-numeric argument to binary operator.
In addition: Warning message:
Incompatible methods ("Ops.data.frame", "+.gg") for "+"
I have tried using the %>% operator, but it still won't work.