Description Usage Arguments Examples
View source: R/color-palettes.R
Draw segments colores by gradients
1 2 3 4 5 6 7 | segments_gradient(
x,
y = NULL,
col = colorRamp2(c("transparent", "black"), TRUE),
lend = 1,
...
)
|
x, y |
Coordinates passed to grDevices::xy.coords. |
col |
Color ramp function (see grDevices::colorRamp). |
lend |
Passed to graphics::segments. |
... |
Further arguments passed to |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.