Closed
Description
library(ggplot2)
library(sf)
#> Linking to GEOS 3.7.2, GDAL 3.0.1, PROJ 6.2.0
d <- data.frame(x = 1:5, y = 1:5)
l <- st_linestring(as.matrix(d))
sf <- st_sf(geometry = st_sfc(l))
p1 <- ggplot(d, aes(x, y)) + geom_line(alpha = 0.1) + ggtitle("geom_line()")
p2 <- ggplot(sf) + geom_sf(alpha = 0.1) + ggtitle("geom_sf()")
patchwork::wrap_plots(p1, p2)
Created on 2019-10-27 by the reprex package (v0.3.0)
Metadata
Metadata
Assignees
Labels
No labels