``` r 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) ```  <sup>Created on 2019-10-27 by the [reprex package](https://reprex.tidyverse.org) (v0.3.0)</sup>
Activity
yutannihilation commentedon Oct 27, 2019
I'll fix this when #3546 gets merged. It would be easy as just adding
| is_linehere:ggplot2/R/geom-sf.R
Line 152 in 6f5ffea
thomasp85 commentedon Nov 4, 2019
yeah - that is an oversight on my part. Good catch, and your fix should work nicely
Alpha affects line geom_sf() (#3608)
lock commentedon May 5, 2020
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/