Draws one or more annular sectors (pie or donut slices) sharing a centre,
guaranteed circular regardless of panel shape: radii are taken as a fraction
of the smaller panel dimension and the geometry is assembled in device
inches inside makeContent(), then roughened. Each slice's roughened
boundary is also reused as the fill region so the hand-drawn edge is kept.
sketch_wedge_grob(
x0,
y0,
r,
r0 = 0,
start,
end,
roughness = 1,
bowing = 0.4,
n_passes = 2L,
seed = NULL,
fill_style = "solid",
hachure_angle = 45,
hachure_gap = 0.07,
fill_weight = 0.5,
fill_gp = gpar(),
outline_gp = gpar(),
name = NULL,
vp = NULL
)A SketchWedgeGrob grob subclass.
Centre in npc [0,1] (scalars).
Outer and inner radius as a fraction of the smaller panel
dimension (r0 = 0 gives a pie, r0 > 0 a donut).
Per-slice start/end angles in radians.
Sketch parameters for the outline.
"solid" (default) paints each slice in its fill colour;
any other style ("hachure", ...) hatches it instead.
Fill parameters (hachure_gap
is a fraction of the smaller panel dimension).
gpar() for the fill (per-slice col recycled).
gpar() for the rough outline (per-slice col recycled).
Passed to grid::gTree().
Other grob-layer:
sketch_arrow_grob(),
sketch_band_grob(),
sketch_callout_grob(),
sketch_dotplot_grob(),
sketch_ellipse_grob(),
sketch_engrave_grob(),
sketch_path_grob(),
sketch_polygon_grob(),
sketch_repel_grob(),
sketch_spray_grob(),
sketch_stroke_grob()