widget_polygon.Rd
Converts an `sf` object with POLYGON geometriers into JSON for plotting in an htmlwidget
widget_polygon(data, stroke_colour = NULL, stroke_opacity = NULL, stroke_width = NULL, fill_colour = NULL, fill_opacity = NULL, legend = TRUE, json_legend = TRUE)
data |
|
---|---|
stroke_colour | string specifying column of |
stroke_opacity | string specifying column of |
stroke_width | string specifying column of |
fill_colour | string specifying column of |
fill_opacity | string specifying column of |
legend | logical indicating if legend data will be returned |
json_legend | logical indicating if the legend will be returned as json |
l <- widget_polygon( widget_melbourne, legend = FALSE ) l <- widget_polygon( widget_melbourne, fill_colour = "AREASQKM16", legend = TRUE )