-
Notifications
You must be signed in to change notification settings - Fork 15
/
thumbnails.yaml
67 lines (53 loc) · 1.79 KB
/
thumbnails.yaml
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
packages:
- sp
- maps
- maptools
- rgeos
- stringr
- dataRetrieval
- lubridate
- dplyr
- mapdata
- jsonlite
- geojsonio
- readr
sources:
- scripts/piemap/map_utils.R
- scripts/piemap/data_utils.R
- scripts/piemap/draw_utils.R
targets:
all:
depends:
- images/thumb_landing.png
- images/thumb_facebook.png
- images/thumb_twitter.png
plot_metadata_landing:
command: list(width = I(400), height = I(400), res = I(300),
bg = I("grey25"), stateborder = I(NA),
countyborder = I(NA), countyfill = I("black"))
plot_metadata_facebook:
command: list(width = I(1560), height = I(820), res = I(300),
bg = I("grey25"), stateborder = I(NA),
countyborder = I(NA), countyfill = I("black"))
plot_metadata_twitter:
command: list(width = I(560), height = I(280), res = I(300),
bg = I("grey25"), stateborder = I(NA),
countyborder = I(NA), countyfill = I("black"))
watermark_file:
command: c("images/usgs_logo_black.png")
county_dots:
command: get_dots('cache/county_centroids_USA.json', 'cache/county_centroids_wu.tsv')
us_states:
command: state_sp()
us_states_square:
command: state_sp(shift = I("square"))
us_dots:
command: shift_centroids(county_dots)
us_dots_square:
command: shift_centroids(county_dots, shift = I("square"))
images/thumb_landing.png:
command: plot_national_pies(us_states_square, us_dots_square, plot_metadata_landing, target_name)
images/thumb_facebook.png:
command: plot_national_pies(us_states, us_dots, plot_metadata_facebook, target_name)
images/thumb_twitter.png:
command: plot_national_pies(us_states, us_dots, plot_metadata_twitter, target_name)