-
Notifications
You must be signed in to change notification settings - Fork 6
/
11_poster_relaxed.Rmd
191 lines (119 loc) · 5.86 KB
/
11_poster_relaxed.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
---
title: "An HTML poster example"
author: "Yihui Xie"
date: "`r Sys.Date()`"
output:
pagedown::poster_relaxed:
self_contained: false
bibliography: packages.bib
references:
- id: remarkjs
author:
- family: Bang
given: Ole Petter
title: 'A simple, in-browser, markdown-driven slideshow tool'
issued:
year: 2018
URL: https://remarkjs.com
- id: naruto
author:
- family: Kishimoto
given: Masashi
title: 'Naruto Shippūden'
issued:
year: 2007
URL: https://en.wikipedia.org/wiki/Naruto
---
<!-- In your final paper you won't often want to echo code. Or see warning or messages on coding at this point. So let's set the knitter setting to echo, warning and message to F globally -->
```{r, echo=FALSE}
knitr::opts_chunk$set(echo = F, warning = F, message = F)
```
Presentation Ninja [with]{.tiny} R and xaringan
================================================================================
In late 2016, Yihui discovered remark.js [@remarkjs] and loved it at the first sight. A few weeks later in the R Markdown ecosystem [@R-rmarkdown], an R package was born and named **xaringan** [@R-xaringan], which nobody knows how to pronounce (including Yihui himself, because it was adapted from the Japanese manga series Naruto by @naruto). Anyway, this package has gained some popularity, and some CSS ninja have started contributing themes to it. One day, Yihui was thinking about creating a gallery for existing themes in **xaringan**. After a few replies in the [Github issue](https://github.com/yihui/xaringan/issues/172), he realized there might be enough topics on **xaringan** for a short book. Accidentally, he invented a new development model for writing books: the Github-issue-driven book development.
[Authors]{.red}
================================================================================
We are a team of shinobi and kunoichi who wish to share the fun and secrets of the **xaringan** package with you.
::: member-cards
## Emi Tanaka
![Emi](https://avatars3.githubusercontent.com/u/7620319?s=400&v=4)
Lead author, and the ninja theme author
Emi laid out the first sketch of the book, which made Yihui believe that the book had been half-done.
## Joseph Casillas
![](https://avatars1.githubusercontent.com/u/1747068?s=400&v=4)
Contributor of **xaringan**
"Count me in," replied Joseph when Yihui asked who wanted to co-author the book.
## Eric Nantz
![](https://avatars0.githubusercontent.com/u/1043111?s=400&v=4)
Host of the R Podcast
Yihui is eager to know how much Eric's writing is better than his magnetic voice.
## Yihui Xie
![](https://avatars0.githubusercontent.com/u/163582?s=400&v=4)
Main author of **xaringan**
Yihui knows a bit about R/HTML/CSS/JS and wrote **knitr** [@R-knitr], which became a cornerstone of R Markdown.
:::
[All pictures above are from the authors' Github profiles. This poster was created via the R package [**pagedown**](https://github.com/rstudio/pagedown).]{.disclaimer}
[Motivation]{.blue}
================================================================================
```{r, include=FALSE}
lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, qui officia deserunt mollit anim id est laborum.'
```
## There are many secrets about **xaringan**, **knitr**, and R Markdown to be revealed
`r lorem`
![The **xaringan** logo, adapted from Sharingan of the Uchiha clan.](https://user-images.githubusercontent.com/163582/45438104-ea200600-b67b-11e8-80fa-d9f2a99a03b0.png)
## HTML/CSS/JS are fun to play with
`r paste('-', strwrap(lorem, 230), collapse = '\n')`
[Schedule]{.pink}
================================================================================
```{css, echo=FALSE}
.section-4 {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/7/7e/Mudra-Naruto-KageBunshin.svg) !important;
background-size: 40% !important;
background-position: right top !important;
background-repeat: no-repeat !important;
}
```
## Outline (2018-12-15)
`r lorem`
## Content (2019-03-01)
`r lorem`
## Review and revision (2019-03-31)
`r lorem`
## Copyediting (2019-04-20)
`r lorem`
## Publishing (2019-05-30)
`r lorem`
[Contents]{.green}
================================================================================
`r lorem`
```{r regtable, results = "asis"}
# load models that have been saved in .Rdata file previously
load("data_products/models.Rdata")
stargazer::stargazer(lateness_by_year,
lateness_following_election, lateness_full, lateness_full_interaction,
dep.var.labels = "Days elapsed since January 1st",
covariate.labels = c("year", "post election", "year*post election"),
title = "The table title",
style = "qje",
type = "html")
```
`r lorem`
```r
# some nice R code here
1 + 1
fit = lm(dist ~ speed, cars)
```
`r lorem`
![The most well-known feature of **xaringan**: the random Moustache Karl (aka `yolo = TRUE`).](https://github.com/yihui/xaringan/releases/download/v0.0.2/karl-moustache.jpg)
`r lorem`
$$\bar{X}=\frac{1}{n}\sum_{i=1}^nX_i$$
`r lorem`
```{r, fig.cap = "Timing of state of the union by year. SOTUs that follow election years are colored with blue.", fig.align='center'}
# Include the figure that you have saved out in working files
knitr::include_graphics("figures/num_speeches_per_pres.png")
```
[Bibliography]{.yellow}
================================================================================
```{r, include=FALSE}
knitr::write_bib(c('knitr', 'rmarkdown', 'xaringan'), 'packages.bib')
```