-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME.Rmd
91 lines (57 loc) · 2.99 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# leafdown <a><img id="leafdown-hex" src='man/figures/hex-leafdown.png' align="right" height="139px" /></a>
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/hoga-it/leafdown/actions)
<!-- badges: end -->
The leafdown package provides drilldown functionality for leaflet choropleths in R Shiny apps.
<img src='man/figures/select_drilldown.PNG'/>
## 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. <br>
This app shows the 2016 us presidential election results as well as some demographic information.<br>
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).
<br>
<br>
<img src='man/figures/app_election_map.png'/>
## 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
<img src='man/figures/healthdown_app.jpg'/>
## 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
<img src='man/figures/app_weather.png'/>