| widget_line {spatialwidget} | R Documentation |
Converts an 'sf' object with LINESTRING geometriers into JSON for plotting in an htmlwidget
widget_line( data, stroke_colour = NULL, stroke_opacity = NULL, stroke_width = NULL, legend = TRUE, json_legend = TRUE, digits = 6 )
data |
|
stroke_colour |
string specifying column of |
stroke_opacity |
string specifying column of |
stroke_width |
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 |
## use default stroke options l <- widget_line( widget_roads, legend = TRUE )