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 Sept. 14, 2024, 11:07 p.m.