st_df2hatch: st_df2hatch

View source: R/stat_signHatch.R

st_df2hatchR Documentation

st_df2hatch

Description

st_df2hatch

Usage

st_df2hatch(data, density = 1, angle = 45, hatch = TRUE)

Arguments

data

A data.frame, with the columns of "x", "y", "mask"(optional), and "PANEL"(optional), "group"(optional).

density

the density of shading lines, in lines per inch. The default value of NULL means that no shading lines are drawn. A zero value of density means no shading nor filling whereas negative values and NA suppress shading (and so allow color filling).

angle

the slope of shading lines, given as an angle in degrees (counter-clockwise).

hatch

boolean. If FALSE, a polygon will be returned, other than lines. Meanwhile, the parameters density and angle will be ignored.

Value

A multi-line sf object


rpkgs/gg.layers documentation built on Sept. 14, 2024, 11:07 p.m.