coord_sf() doesn't adjust line size for graticule lines #2991
Line sizes in themes are generally provide in units of mm and converted to grid units by multiplication by
library(ggplot2) df <- data.frame(x = c(1, 2, 3), y = c(1, 2, 3)) p <- ggplot(df, aes(x, y)) + geom_point() cowplot::plot_grid( p + coord_fixed() + theme(panel.grid.minor = element_blank()) + ggtitle("coord_fixed()"), p + coord_sf() + ggtitle("coord_sf() default"), p + coord_sf() + theme(panel.grid = element_line(size = 0.5*.pt)) + ggtitle("coord_sf() theme adjusted"), nrow = 2 )
Created on 2018-11-09 by the reprex package (v0.2.1)
The offending lines are here:
The fix is simple, but it would affect the visual appearance of a lot of plots out in the wild.
The text was updated successfully, but these errors were encountered: