https://github.com/doi-usgs/flow-tiles
A tile map showing a month of streamflow conditions across the U.S.
https://github.com/doi-usgs/flow-tiles
Last synced: 14 days ago
JSON representation
A tile map showing a month of streamflow conditions across the U.S.
- Host: GitHub
- URL: https://github.com/doi-usgs/flow-tiles
- Owner: DOI-USGS
- License: cc0-1.0
- Created: 2022-05-04T17:21:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-02T15:02:23.000Z (19 days ago)
- Last Synced: 2025-05-07T07:18:45.609Z (14 days ago)
- Language: R
- Size: 105 MB
- Stars: 44
- Watchers: 5
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Recreating the streamflow tile map
This repository uses the [`targets` package](https://docs.ropensci.org/targets/) to build the chart. Run `tar_make()` to execute `_targets.R` .Install all packages needed to run:
```
install.packages(c('targets', 'tidyverse', 'lubridate', 'geofacet', 'cowplot','ggfx', 'showtext', 'magick', 'maps', 'svglite', 'xml2'))
```Running `tar_make()` will produce:
  
To disable `showtext` font styling after running pipeline, run:
```
showtext_auto(enable = FALSE)
```## Data
This viz piggybacks on the [`gage-conditions-gif`] data processing pipeline (https://github.com/USGS-VIZLAB/gage-conditions-gif) that depends on an internal pipelining package. The data file used corresponds to `scipiper::scmake("2_process/out/dv_stats.rds.ind", "2_process.yml")` generated for a 1-month time period. (Instructions for internal users generating the file used by this viz: either re-run the target for the appropriate dates or filter it to the correct date range. Then save as a CSV. The CSV file needs to be uploaded to the `water-visualizations-prod-website` S3 bucket and live at `visualizations/data/flow_conditions_{YYYYMM}.csv`.)