%% smart %% to=latex %% template=tex/poster_eco.tex %% filter=tex/poster-filters.py %% biblatex
library('ggplot2') library('knitr') theme_set(theme_grey(base_size=10)) knitr::opts_chunk$set(fig.width = 16, fig.height = 4)
[columns=2]
[column]
Lectures are combination of didactic and active learning
Ask A Question: Why are you more likely to live if you have smoked? Interaction: examine the relationship between age/death and age/smoking Discuss Observations: Age is confounded with smoking status, and death is high Reach Consensus: Relationship holds for those under 59
Using bookdown
or rmarkdown
, users can insert figures into a document in a friendly way. Just embed the R scripts into your .Rmd
file(s) and compile it/them with knitr package, and the figures will appear automatically with high resolution and reproductivity.
ggplot(iris, aes(Sepal.Length, Petal.Length)) + geom_point(aes(color = Species)) + facet_wrap(~ Species)
Similarly to graphs, tables can be inserted either with R script or with markdown syntax.
knitr::kable( head(iris, 3), caption = 'IRIS data as an example.', booktabs = TRUE )
\printbibliography
[column]
bookdownplus
Some sample pages are displayed as follows. More details can be found in the tutorial book [@R-bdp].
\begin{figure}[htp] \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf} \end{figure}
\begin{figure}[htp] \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf} \end{figure}
\begin{figure}[htp] \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf}\hfill \includegraphics[width=.33\textwidth]{images/mail.pdf} \end{figure}
R bookdownplus
is an extension of bookdown
for academic and literal writing, especially for reproducible reports.
R bookdownplus
is still being developed. Feel free to join me either in contributing templates to my Github repo ^[https://github.com/pzhaonet/bookdownplus], or in writing the tutorial of R bookdownplus [@R-bdp].
Many thanks to Dr. Yihui Xie for his amazing generosity and incredible patience in helping me get into the wonderful world of R bookdown.
The open source codes from Github and R community are much appreciated.
\vskip1.5cm
[/columns]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.