-
Notifications
You must be signed in to change notification settings - Fork 15
/
national_gif.yml
73 lines (54 loc) · 1.99 KB
/
national_gif.yml
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
packages:
- sp
- maps
- maptools
- rgeos
- readr
- stringr
- dataRetrieval
- lubridate
- dplyr
- mapdata
- jsonlite
- scipiper
sources:
- scripts/gifs/map_utils.R
- scripts/gifs/data_utils.R
- scripts/gifs/draw_utils.R
file_extensions:
- "ind"
targets:
all:
depends:
- gifs/US_water_use_twitter.gif.ind
- gifs/US_water_use_reddit.gif.ind
plot_metadata_twitter:
command: c(I(8), I(4), I(128))
plot_metadata_reddit:
command: c(I(8), I(4), I(320))
proj:
command: c(I("+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs"))
us_states:
command: shifted_topojson("cache/state_boundaries_mobile.json", proj.string = proj)
us_counties:
command: shifted_topojson("cache/county_boundaries_mobile.json", proj.string = proj)
county_dots:
command: get_state_dots('cache/county_centroids_USA.json',
proj.string = proj,
'cache/county_centroids_wu.tsv', state_totals = state_totals)
us_county_dots:
command: shift_centroids(county_dots, proj.string = proj)
state_totals:
command: get_us_totals('cache/wu_data_15_sum.json')
plot_layout_reddit:
command: get_national_layout(us_states, plot_metadata_reddit)
plot_layout_twitter:
command: get_national_layout(us_states, plot_metadata_twitter)
gifs/US_water_use_twitter.gif.ind:
command: build_wu_gif(us_states, us_counties, us_county_dots, state_totals, plot_layout_twitter,
'images/usgs_logo_black.png',
target_name, frames = I(5), I('pie'), I('thermoelectric'), I('irrigation'), I('publicsupply'), I('industrial'), pause_delay = I('150'))
gifs/US_water_use_reddit.gif.ind:
command: build_wu_gif(us_states, us_counties, us_county_dots, state_totals, plot_layout_reddit,
'images/usgs_logo_black.png',
target_name, frames = I(5), I('pie'), I('thermoelectric'), I('irrigation'), I('publicsupply'), I('industrial'), pause_delay = I('250'))