[R-sig-Geo] Does ggmap work with sf objects through geom_sf?
Manuel Spínola
mspinola10 at gmail.com
Sun Mar 12 14:29:09 CET 2017
Dear list members,
Does ggmap work with sf objects through geom_sf?
I got the following error:
nc <- st_read(system.file("shape/nc.shp", package="sf"))
nclocation <- c(-80, 34)
ncmap <- get_map(location = nclocation, zoom = 6)
ggmap(ncmap) + geom_sf(data = nc)
Error in eval(expr, envir, enclos) : object 'lon' not found
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list