Skip to content

Commit

Permalink
replacing pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomroh committed Jan 17, 2022
1 parent 0a358c2 commit b0a9905
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/legend.R
Original file line number Diff line number Diff line change
Expand Up @@ -1145,17 +1145,17 @@ addLegendFactor <- function(map,
#' baseSize <- 10
#' lineColor <- '#00000080'
#' pal <- colorNumeric('Reds', atlStorms2005$MinPress)
#' leaflet() |>
#' addTiles() |>
#' leaflet() %>%
#' addTiles() %>%
#' addPolylines(data = atlStorms2005,
#' weight = ~sizeNumeric(values = MaxWind, baseSize = baseSize),
#' color = ~pal(MinPress),
#' popup = ~as.character(MaxWind)) |>
#' popup = ~as.character(MaxWind)) %>%
#' addLegendLine(values = atlStorms2005$MaxWind,
#' title = 'MaxWind',
#' baseSize = baseSize,
#' width = 50,
#' color = lineColor) |>
#' color = lineColor) %>%
#' addLegendNumeric(pal = pal,
#' title = 'MinPress',
#' values = atlStorms2005$MinPress)
Expand Down Expand Up @@ -1397,17 +1397,17 @@ addLegendLine <- function(map,
#' spin = TRUE,
#' squareMarker = FALSE)
#' )
#' leaflet(quakes[1:3,]) |>
#' addTiles() |>
#' leaflet(quakes[1:3,]) %>%
#' addTiles() %>%
#' addAwesomeMarkers(lat = ~lat,
#' lng = ~long,
#' icon = iconSet) |>
#' icon = iconSet) %>%
#' addLegendAwesomeIcon(iconSet = iconSet,
#' orientation = 'horizontal',
#' title = htmltools::tags$div(
#' style = 'font-size: 20px;',
#' 'Awesome Icons'),
#' labelStyle = 'font-size: 16px;') |>
#' labelStyle = 'font-size: 16px;') %>%
#' addLegendAwesomeIcon(iconSet = iconSet,
#' orientation = 'vertical',
#' marker = FALSE,
Expand Down

0 comments on commit b0a9905

Please sign in to comment.