draw_polygon | R Documentation |
draw horizontal and vertical polygons
draw_polygon(
vals,
x = NULL,
type = "horizontal",
length.out = 10000,
col.regions = c("blue", "red"),
alpha = 0.6,
zlim = c(-Inf, Inf),
...
)
vals |
numeric vector |
x |
The corresponding x position of |
type |
one of "horizontal" or "vertical" |
length.out |
the length of interpolated |
col.regions |
A vector of colors, or a function to produce a vecor of colors, to
be used if |
alpha |
the alpha of polygon's fill color |
zlim |
limits of |
... |
Extra parameters. |
set.seed(1)
y <- rnorm(10)
x <- seq_along(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.