Skip to content

Commit

Permalink
decreasing = FALSE for the color scale
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliujoyliu committed Jul 2, 2024
1 parent 309f480 commit 211106b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions R/leaflet_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ leaflet_graph <- function(station_spatial) {
fillOpacity = 0,
breaks = 5,
position = 'bottomright') |>
leaflet::addLegend(
leaflegend::addLegendNumeric(
pal = numPal,
title = 'Matched Detection',
shape = 'stadium',
values = df$Detections,
fillOpacity = .5,
decreasing = TRUE,
position = 'bottomright')
decreasing = FALSE,
orientation = 'horizontal',
shape = 'rect',
position = 'bottomright',
height = 20,
width = 100)



Expand Down

0 comments on commit 211106b

Please sign in to comment.