plot(ne_countries(type = "countries"),col="#bcbddc")
Warning: The returnclass argument of ne_download() sp as of rnaturalearth 1.0.0.
ℹ Please use sf objects with {rnaturalearth}, support for Spatial objects
(sp) will be removed in a future release of the package.
Error in as.double(y) :
cannot coerce type 'S4' to vector of type 'double'
Calls: plot -> plot.default -> xy.coords
plot(ne_countries(type = "countries"),col="#bcbddc") Warning: The
returnclass
argument ofne_download()
sp as of rnaturalearth 1.0.0. ℹ Please usesf
objects with {rnaturalearth}, support for Spatial objects (sp) will be removed in a future release of the package. Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double' Calls: plot -> plot.default -> xy.coords