Draws a radial segment ("spoke") from each point (x, y) at angle
(radians) for radius length. A first-class primitive for
direction/velocity fields and for radial network edges whose endpoints
are naturally expressed in polar terms.
Usage
mark_spoke(
plot,
mapping = NULL,
data = NULL,
position = NULL,
...,
rasterize = FALSE,
rasterize_dpi = 300,
rasterize_dev = "cairo"
)Arguments
- plot
A plotit object
- mapping
Optional new aesthetics (must include
x,y,anglein radians, andradius)- data
Optional data for this layer
- position
Position adjustment.
- ...
Other arguments passed to
geom_spoke- rasterize
If
TRUE, rasterize viaggrastr::rasterise().- rasterize_dpi
DPI for rasterization (default 300).
- rasterize_dev
Graphics device for rasterization (default
"cairo").
References
Vega-Lite: Spoke
