draw_polygon.Rd
draw horizontal and vertical polygons
numeric vector
The corresponding x position of vals
one of "horizontal" or "vertical"
the length of interpolated vals
and x
A vector of colors, or a function to produce a vecor of colors, to
be used if region=TRUE
. Each interval defined by at
is assigned a color, so the number of colors actually used is one
less than the length of at
. See level.colors
for details on how the color assignment is done.
the alpha of polygon's fill color
limits of vals
Extra parameters.