Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoga-it/leafdown
leafdown: drilldown functionality for leaflet choropleths
https://github.com/hoga-it/leafdown
leaflet r shiny-r
Last synced: 3 months ago
JSON representation
leafdown: drilldown functionality for leaflet choropleths
- Host: GitHub
- URL: https://github.com/hoga-it/leafdown
- Owner: hoga-it
- Created: 2020-05-28T15:06:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T19:08:16.000Z (almost 2 years ago)
- Last Synced: 2024-05-14T11:33:57.004Z (6 months ago)
- Topics: leaflet, r, shiny-r
- Language: R
- Homepage: https://hoga-it.github.io/leafdown/index.html
- Size: 82.2 MB
- Stars: 60
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-shiny-extensions - leafdown - Provides drilldown functionality for leaflet choropleths. (Visualization / Maps and Spatial Data)
- jimsghstars - hoga-it/leafdown - leafdown: drilldown functionality for leaflet choropleths (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/hoga-it/leafdown/workflows/R-CMD-check/badge.svg)](https://github.com/hoga-it/leafdown/actions)The leafdown package provides drilldown functionality for leaflet choropleths in R Shiny apps.
## Installation
You can install the released version of leafdown from [CRAN](https://CRAN.R-project.org) with:
``` r
install.packages("leafdown")
```You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("hoga-it/leafdown")
```## Documentation
You can find the documentation [here](https://hoga-it.github.io/leafdown/index.html).
## Features
- Adds drilldown functionality for [leaflet choropleths](https://rstudio.github.io/leaflet/choropleths.html) maps.
- Allows the selection of regions/shapes.
- Easy to use and well-integrated into syntax of the [leaflet](https://rstudio.github.io/leaflet/) R package.
- Allows communication of the map with other shiny elements (e.g. graphs).
- Computationally efficient as drilldown is only executed for selected regions of interest.## Showcase - Election Map
To showcase the features of the `leafdown` package we have created a demo app.This app shows the 2016 us presidential election results as well as some demographic information.
Click here for the [full demo app](https://pega.shinyapps.io/election16/) and here for the [documentation](https://hoga-it.github.io/leafdown/articles/Connection_to_other_elements.html).
## Showcase - healthdown
The healthdown app allows interactive comparison of various health factors at the U.S. state and county level.
It was honored as "Runners up" in the Shiny Contest 2021.Link to healthdown: https://hoga.shinyapps.io/healthdown/
Code: https://github.com/hoga-it/healthdown
## Showcase - Weather stations
This app allows interactive comparison of weather station measurements between states, counties and individual stations.
It was primarily developed for Andreas' [talk](https://www.rstudio.com/conference/2022/talks/leafdown-interactive-multi-layer-maps/)
at the rstudio::conf(2022), where he demonstrated the capabilities of the leafdown package.Link to the app: https://hoga.shinyapps.io/leafdown_rstudio_conf_2022/
Code: https://github.com/andreash0/leafdown_rstudio_conf_2022