Description Usage Arguments Examples
View source: R/spatial_widget.R
Converts an 'sf' object with POLYGON geometriers into JSON for plotting in an htmlwidget
1 2 3 4 5 6 7 8 9 10 11 |
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 |
digits |
number of decimal places for rounding lon o& lat coordinates. Default 6 |
1 2 | l <- widget_polygon( widget_melbourne, legend = FALSE )
l <- widget_polygon( widget_melbourne, fill_colour = "AREASQKM16", legend = TRUE )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.