widget_od.Rd
Converts an `sf` object with two POINT geometriers into JSON for plotting in an htmlwidget
widget_od(data, origin, destination, fill_colour = NULL, fill_opacity = NULL, legend = TRUE, json_legend = TRUE)
data |
|
---|---|
origin | string specifying the column of |
destination | string specifying the 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_od( data = widget_arcs, origin = "origin", destination = "destination", legend = FALSE )