Skip to content

trafficonese/weathericons

Repository files navigation

weathericons

Build Status lifecycle codecov

The package adds support for the weather-icons library.

Installation

remotes::install_github("trafficonese/weathericons")

Example

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")

Releases

No releases published

Packages

No packages published