-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.Rmd
226 lines (133 loc) · 3.94 KB
/
index.Rmd
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
---
title: 'Dashboard Like a Boss'
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
orientation: rows
css: dashboard_source_folder/css/starlight_css.css
theme: bootstrap
---
```{r setup, include=FALSE, message=FALSE, warning=FALSE}
knitr::opts_chunk$set(echo = FALSE) # always echo=FALSE for dashboards. No need to show off. you can include source code if you want
# bc you set echo to false, you don't actually need include=FALSE, message=FALSE, or warning=FALSE in the
# chunk "preamble" (can I call it that? if it's called something else can I still call it that?)
library(flexdashboard) # dashboards!
library(highcharter) # for interactive plots
library(DT) # for search/filter/downloadable tables
library(tidyverse) # doi
options(scipen=999) # keep scientific notation turned off
source('dashboard_source_folder/R/file_export_for_dashboards.R')
```
<div class="footer">
<p> DCR 2019 | Malorie Hughes | maloriejhughes@gmail.com | github.com/maloriejhughes </p>
</div>
```{r,echo=F}
# pdated <script> document.write(new Date().toLocaleDateString()); </script>
# outline:
# motivation
# anatomy of a dashboard. navigation bar != header.
# map the anatomy to the css code
# define the basic components, and the basic attributes that can be modified.
# everything is like an object. there are
# boarders: margin, padding [learn diff between margin and padding]
# sizes: font-size, height/width
# position: fixed, float.....
# can css take variables? how?
# can i use javascript instead? how?
# find way to set css global custom options for:
# value boxes
# highcharter
# ggplot
# datatable
# color theme
# can use shiny runtime. make a skeleton for that and put on github
# look into navigation menu drop down
# you can bring the css into your code using a chunk:
# ```{css}
# ```
# same way you'd do an r chunk
# create code block looking style option
```
```{r export}
```
Slides {data-orientation="columns"}
=====================================
Column {data-height=800}
-------------------------------------
```{r,dpi=240}
knitr::include_url('Slides/DashboardingSlides.html', height="850px")
```
1. Basic Layout
=====================================
Row {data-height=175}
-------------------------------------
### 1-10, how cool are Value Boxes?
```{r}
valueBox(2
)
```
### 1-10, how cool are gauges?
```{r}
gauge(9
, min = 0 , max = 10
, gaugeSectors( success = c(9, 10), warning = c(7, 9), danger = c(0, 7))
)
```
### 1-10, how cool are Value Boxes + favicon icons?
```{r}
valueBox(7
, icon="fa-tag"
)
```
Row {data-height=300}
-------------------------------------
### stuuuuffff
```{r}
```
### more stuuuffffff
```{r}
```
Row {data-height=300}
-------------------------------------
### great insight
```{r}
```
### so actionable
```{r}
```
Row {data-height=1000, .tabset}
-------------------------------------
### omg
```{r}
```
### it's taaabbbed
```{r}
```
2. Printing {data-orientation="columns"}
=====================================
Column {data-height=1000}
-------------------------------------
```{r,dpi=240}
knitr::include_url('Tutorials/Table-Print-Comparison.html', height="1000px")
```
3. Datasets {data-orientation="columns"}
=====================================
Column {data-height=1000}
-------------------------------------
```{r,dpi=240}
knitr::include_url('Tutorials/Including-Datasets.html', height="1000px")
```
4. Interactive Viz {data-orientation="columns"}
=====================================
Column {data-height=1000}
-------------------------------------
```{r,dpi=240}
knitr::include_url('Tutorials/Highcharter-tutorial.html', height="1000px")
```
5. Exporting
=====================================
Column {data-height=1000}
-------------------------------------
```{r,dpi=300}
knitr::include_url('Tutorials/Exporting.html', height="1000px")
```