Closed Robinlovelace closed 4 years ago
Update on this, I tried fixing this with legend_options as follows, but to no avail. Any ideas @mpadge ?
legend_options
plot_layer = function (net) { net$width = 100 * net$layer / max (net$layer, na.rm = TRUE) mapdeck::mapdeck_update(map_id = "mymap") %>% mapdeck::add_path(palette = "inferno", # see colourvalues::color_palettes() net, stroke_colour = "layer", stroke_width = "width", stroke_opacity = "layer", legend = TRUE, layer_id = "mylayer", legend_options = list(mylayer = list(digits = 0))) }
Update on this, I tried fixing this with
legend_options
as follows, but to no avail. Any ideas @mpadge ?