-
Notifications
You must be signed in to change notification settings - Fork 11
/
viz.yaml
360 lines (360 loc) · 9.91 KB
/
viz.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
vizlab: "0.1.5"
info:
id: example
name: Simple but complete vizualization
date: 2016-11-21
publish-date: 9999-01-01
path: /example
analytics-id: UA-78530187-1
description: >-
This is meant to touch all features and act as an integration
test of the vizlab platform.
keywords: vizlab, visualizations, data, R
twitter: "@USGS_R"
owner:
name: Alison Appling
email: [email protected]
affiliation: U.S. Geological Survey
contributors:
-
name: Jordan Walker
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Lindsay Carr
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Samantha Oliver
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Jordan Read
email: [email protected]
affiliation: U.S. Geological Survey
-
name: David Watkins
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Marty Wernimont
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Jacob Zwart
email: [email protected]
affiliation: U.S. Geological Survey
required-packages:
dplyr:
repo: CRAN
version: 0.7.2
dataRetrieval:
repo: GRAN
version: 2.7.3
vizlab:
repo: github
version: 0.2.2.9004
name: USGS-VIZLAB/vizlab
ref: 60fa3451555eea532c06c03f217ab46f0e28ff9a
svglite:
repo: github
version: 1.2.0.9003
name: jread-usgs/svglite
ref: svgnano_03
parameter:
-
id: plot-info
height: 700
width: 700
-
id: color-stuff
points: green
-
id: social-links
github: https://github.com/USGS-VIZLAB/example
twitter: https://twitter.com/share?url=https%3A%2F%2Fowi.usgs.gov%2Fvizlab%2FEXAMPLE%2F&text=EAMPLE1%20stuff&hashtags=EXAMPLE1,EXAMPLE2,dataviz
fetch:
-
id: iris-data
location: data/iris.csv
mimetype: text/csv
scripts:
-
id: cars-data
location: cache/cars.csv
fetcher: cars
mimetype: text/csv
scripts: scripts/fetch/cars.R
-
id: Cuyahoga
location: cache/fetch/CuyahogaTDS.csv
fetcher: sciencebase
scripts:
remoteItemId: 59dffeb3e4b05fe04cce9fc2
remoteFilename: CuyahogaTDS.csv
mimetype: text/csv
-
id: markdown-text
location: data/markdownText.yaml
reader: md
mimetype: text/yaml
process:
-
id: calc-cars
location: cache/car-loess.rds
processor: cars
scripts: scripts/process/cars.R
reader: rds
depends: [ "cars-data" ]
-
id: CuyahogaShort
location: cache/process/CuyahogaShort.tsv
mimetype: text/tab-separated-values
depends: Cuyahoga
processor: cuyahoga
scripts: scripts/process/cuyahoga.R
visualize:
-
id: plot-cars
location: figures/cars.png
scripts: scripts/visualize/visualize.R
visualizer: cars
depends: [ "calc-cars", "cars-data","plot-info" ]
mimetype: image/png
title: "Speed vs. Braking Distance"
alttext: "plot of ratio of speed to braking distance"
-
id: plot-iris
location: figures/iris.png
scripts: scripts/visualize/visualize.R
visualizer: iris
depends: [ "iris-data" ]
mimetype: image/png
title: "Sepal length vs. pedal length"
alttext: "plot of iris sepal length to pedal length"
-
id: cuyahogaFig
location: figures/cuyahogaFig.svg
depends:
data: "CuyahogaShort"
colors: "color-stuff"
scripts: scripts/visualize/visualize.R
visualizer: qTDS
mimetype: image/svg+xml
title: "Cuyahoga figure"
alttext: "figure displaying total dissovled solids vs. discharge of Cuyahoga river"
-
id: coupla_dots
location: figures/coupla_dots.svg
scripts: scripts/visualize/visualize.R
visualizer: dots
mimetype: image/svg+xml
title: "dots for testing interactions"
alttext: "there is not much to look at here"
-
id: path
location: figures/path.svg
scripts: scripts/visualize/visualize.R
visualizer: path
mimetype: image/svg+xml
title: "path for testing interactions"
alttext: "there is not much to look at here"
publish:
-
id: index
name: index
publisher: page
template: fullpage
depends:
sourcesansprofont: sourcesansprofont
cars-section: cars-section
dots_section: dots_section
path_section: path_section
social: social-section
vertical-social: vertical-social-section
footer: footer-section
header: header-section
figure-style: figure-style
text-section: text-section
iris-section: iris-section
Cuyahoga-section: Cuyahoga-section
markdown-section1: markdown-section1
markdown-section2: markdown-section2
footerCSS: lib-footer-css
headerCSS: lib-header-css
svgCSS: svg-css
socialCSS: lib-social-media-css
jquery: lib-jquery-js
svg-inject: lib-svg-injector-js
vizlabjs: lib-vizlab-javascript
lib-d3-js: lib-d3-js
tooltip-js: lib-tooltip-js
thumb-twitter: thumb-twitter
thumb-facebook: thumb-facebook
thumb-landing: thumb-landing
context:
title: Testing
sections: [ "vertical-social", "cars-section", "dots_section", "path_section", "social", "text-section", "iris-section", "markdown-section1", "Cuyahoga-section", "markdown-section2"]
resources: [ "figure-style", "footerCSS", "headerCSS", "svgCSS","socialCSS", "sourcesansprofont","jquery", "svg-inject", "vizlabjs", "lib-d3-js", "tooltip-js"]
thumbnails:
twitter: thumb-twitter
facebook: thumb-facebook
landing: thumb-landing
main: thumb-landing
-
id: cars-section
publisher: section
template: simplefigure
depends: [ "plot-cars" ]
context:
id: carsFig
figure: "plot-cars"
caption: Relationship between speed and stopping distance on several cars
-
id: dots_section
publisher: section
template: simplefigure
depends: [ "coupla_dots" ]
context:
id: svg-dots
figure: "coupla_dots"
caption: dots that are svg elements
-
id: path_section
publisher: section
template: simplefigure
depends: [ "path" ]
context:
id: svg-path
figure: "path"
caption: path svg elements
-
id: text-section
template: printall
publisher: section
context:
text:
This is a text section in the viz.yaml. Since it is only
text, it doesn't need be referenced anywhere outside of the publish
section. Text wrapping in the viz should be handled automatically.
Follow YAML conventions to change formatting.
-
id: markdown-section1
template: printall
publisher: section
depends: markdown-text
context:
text: markdown-text.example-markdown
-
id: markdown-section2
template: printall
publisher: section
depends: markdown-text
context:
text: markdown-text.markdown-table
-
id: iris-section
publisher: section
template: simplefigure
depends: [ "plot-iris" ]
context:
id: irisFig
figure: "plot-iris"
caption: Relationship between iris sepal length to pedal length
-
id: Cuyahoga-section
template: simplefigure
depends: cuyahogaFig
publisher: section
context:
id: cuyahoga-fig
figure: cuyahogaFig
caption: Total dissolved solids vs discharge
-
id: embed-page
name: embed-dots
publisher: page
template: embed
mimetype: text/html
depends: ["dots_section", "svg-css", "lib-jquery-js", "lib-d3-js","lib-tooltip-js"]
context:
resources: ["svg-css", "lib-jquery-js", "lib-svg-injector-js", "lib-vizlab-javascript","lib-vizlab-favicon", "lib-d3-js","lib-tooltip-js"]
embed: ["dots_section"]
-
id: figure-style
location: layout/css/main.css
publisher: resource
mimetype: text/css
-
id: social-section
template: social-media-template
publisher: social
depends: social-links
context:
embedLink: embed-dots.html
facebookLink: http://www.facebook.com/sharer.php?u=https%3A%2F%2Fowi.usgs.gov%2Fvizlab%2FEXAMPLE%2F
-
id: vertical-social-section
template: vertical-social-media-template
publisher: social
depends: social-links
context:
embedLink: embed-dots.html
facebookLink: http://www.facebook.com/sharer.php?u=https%3A%2F%2Fowi.usgs.gov%2Fvizlab%2FEXAMPLE%2F
-
id: header-section
template: header-template
publisher: header
context:
title: Example Viz
-
id: footer-section
template: footer-template
publisher: footer
depends: [ "lib-footer-css"]
blogsInFooter: TRUE
vizzies:
- name: Drought in the Lower Colorado Basin
org: USGS-CIDA
repo: OWDI-Lower-Colorado-Drought-Vis
- name: Microplastics in the Great Lakes
url: https://owi.usgs.gov/vizlab/microplastics/
thumbLoc: https://owi.usgs.gov/vizlab/microplastics/images/thumbnail.png
blogs:
- name: Visualizing Tropical Storm Colin Precipitation using geoknife
org: https://owi.usgs.gov/blog/ts-colin-precip/
thumbLoc: https://owi.usgs.gov/blog/static/ts-colin-precip/use-functions-1.png
-
id: sourcesansprofont
publisher: googlefont
family: "Source Sans Pro"
weight: [300, 400, 600]
-
id: svg-css
location: layout/css/svg.css
mimetype: text/css
publisher: resource
-
id: thumb-facebook
location: images/thumb-facebook.png
publisher: thumbnail
mimetype: image/png
thumbType: facebook
title: "Facebook Thumbnail"
alttext: "Facebook Thumbnail"
-
id: thumb-twitter
location: images/thumb-twitter.png
publisher: thumbnail
thumbType: twitter
mimetype: image/png
title: "Twitter Thumbnail"
alttext: "Twitter Thumbnail"
-
id: thumb-landing
location: images/thumb-landing.png
publisher: thumbnail
mimetype: image/png
thumbType: [landing, main]
title: "Landing Thumbnail"
alttext: "Landing Thumbnail"