addLegend_decreasing: addLegend - but with the option for the highest number to be...

addLegend_decreasingR Documentation

addLegend - but with the option for the highest number to be at the top of the legend

Description

solution from mpriem89 (https://github.com/rstudio/leaflet/issues/256#issuecomment-440290201)

Usage

addLegend_decreasing(
  map,
  position = c("topright", "bottomright", "bottomleft", "topleft"),
  pal,
  values,
  na.label = "NA",
  bins = 7,
  colors,
  opacity = 0.5,
  labels = NULL,
  labFormat = labelFormat(),
  title = NULL,
  className = "info legend",
  layerId = NULL,
  group = NULL,
  data = getMapData(map),
  decreasing = FALSE
)

NewYorkCityCouncil/councildown documentation built on Oct. 24, 2024, 8:39 p.m.