On Sun, Mar 12, 2017 at 3:52 AM, Manuel Spínola <
mspin...@gmail.com> wrote:
> Dear list members,
>
> I am trying to map an sf projected (utm) spatial object with geom_sf.
>
> cr_sf <- read_sf("cr_crtm05.gpkg", layer = "cr_crtm05")
>
> Reading layer `cr_crtm05' from data source
> `C:\Users\mspin\Dropbox\Proyectos_en_R\Sinac\cr_crtm05.gpkg' using driver
> `GPKG'
> Simple feature collection with 1 feature and 6 fields
> geometry type: POLYGON
> dimension: XY
> bbox: xmin: 286586.4 ymin: 889526.4 xmax: 658487.2 ymax: 1241338
> epsg (SRID): NA
> proj4string: +proj=tmerc +lat_0=0 +lon_0=-84 +k=0.9999 +x_0=500000 +y_0=0
> +ellps=WGS84 +units=m +no_defs
>
> When I plot with ggplot2, the coordinates are in geographic coordinates, not
> in utm as is the source map
>
> ggplot() + geom_sf(data = cr_sf, fill = "darkblue") + coord_sf(crs =
> st_crs(cr_sf))
source map is projected. If you want it in UTM, provide the