R/examples/ex-st_hatched_polygon.R

library(gg.layers)
library(ggplot2)
data("d_trendPerc")

d = d_trendPerc %>% subset(perc >= 0.99) %>% .[, 1:2]
poly = st_point2poly(d)
hatches = st_hatched_polygon(poly) #
ggplot(hatches) + geom_sf()
rpkgs/gg.layers documentation built on June 2, 2025, 11:30 a.m.