Draw segments colored by gradients
Usage
segments_gradient(
x,
y = NULL,
col = colorRamp2(c("transparent", "black"), TRUE),
lend = 1,
...
)Arguments
- x, y
Coordinates passed to grDevices::xy.coords.
- col
Color ramp function (see grDevices::colorRamp).
- lend
Passed to graphics::segments.
- ...
Further arguments passed to
segments.
Value
See graphics::segments.
