Usage
ly_polygons(fig, xs, ys, group = NULL, data = figure_data(fig), color = NULL, alpha = 1, hover = NULL, url = NULL, lname = NULL, lgroup = NULL, visible = TRUE, ...)
Arguments
xs
vector or list of values or field name of polygon x coordinates - see details
ys
vector or list of values or field name of polygon y coordinates - see details
group
vector or field name of grouping variable - see details
data
an optional data frame, providing the source for inputs xs, ys, group, and other glyph properties
color
color for the glyph - a hex code (with no alpha) or any of the 147 named CSS colors, e.g 'green', 'indigo' - for glyphs with both fill and line properties, see "Handling color" below
alpha
the alpha transparency of the glyph between 0 (transparent) and 1 (opaque) - if glyph has both fill and color properties, see "Handling alpha" below
hover
a data frame of variables to be displayed when hovering over the glyph or a vector of variable names that can be found and extracted from the data argument
url
a string of URLs or a single string that references a variable name (via @var_name) that can be found and extracted from the data argument
visible
should the layer be visible?
...
additional parameters for fine control over fill and line properties (see "Additional parameters" below)