-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
49 lines (35 loc) · 1.68 KB
/
README.Rmd
File metadata and controls
49 lines (35 loc) · 1.68 KB
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
---
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%"
)
```
# macrodashboard
<!-- badges: start -->
[](https://github.com/grattan/macrodashboard/actions)
<!-- badges: end -->
This repo contains builds a Shiny dashboard of graphs relevant to Grattan Institute's
work on macroeconomic policy.
This is an *unfinished work in progress*.
The live dashboard can be found at: [https://grattan.shinyapps.io/macrodashboard/](https://grattan.shinyapps.io/macrodashboard/)
# Data
All data for the dashboard comes via the `macro_dashboard_data` repo, [available here](https://github.com/grattan/macro_dashboard_data/). That repo contains
functions to download the latest version of each dataset, do some minimal tidying,
and then write files to its 'data' directory. The functions in `macro_dashboard_data`
execute on a schedule using GitHub Actions, so that the data stays up-to-date.
# Structure
The 'R' folder of this repo contains:
- files beginning with `viz_`. These take a dataframe as input and return a ggplot2
plot. There is one function per file.
- `dash_app.R`. This contains the server-side code for the Shiny app.
- `dash_ui.R`. This contains the UI code for the Shiny app.
- `globals.R`. This file defines global variables, to prevent warnings regarding
functions that use non-standard evaluation.
- `load_data.R` This file contains a function (`load_data()`) that gets data
from the `macro_data_dashboard` repo.