The package adds support for the weather-icons library.
remotes::install_github("trafficonese/weathericons")
Basic examples to create weathericons:
library(weathericons)
weathericon("wi-humidity")
weathericon("wi-forecast-io-rain")
weathericon("wi wi-yahoo-7", rotate = "90")
weathericon("wi wi-yahoo-7", flip = "vertical")
weathericon("wi wi-wind", towards = "sse")
weathericon("wi-wind", from = "sse")
weathericon("wi wi-wind", towards = 40)
weathericon("wi wi-wind", from = 40)
List all icons:
shiny::runApp(system.file("examples/app.R", package = "weathericons"),
display.mode = "showcase")
Customize icons example with CSS:
shiny::runApp(system.file("examples/app_classes.R", package = "weathericons"),
display.mode = "showcase")
Using JS functions and inline styling:
shiny::runApp(system.file("examples/js_functions.R", package = "weathericons"),
display.mode="showcase")
Leaflet popups and labels with weathericons:
shiny::runApp(system.file("examples/leaflet_popup.R", package = "weathericons"),
display.mode = "showcase")
Weathericons as SVG:
shiny::runApp(system.file("examples/svgs_app.R", package = "weathericons"),
display.mode = "showcase")