%% 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]

Introduction

Motivation

Interactive Visualizations are Even Better

Not a Substitute for Teaching!

Lectures are combination of didactic and active learning

One Example

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

Methods

Pros/Cons to Interactive Visualization

Pros

Cons

Results

Graphs

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)

Table

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
)

Bibliography

\printbibliography

[column]

Book types supported by 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}

Take-home message

Acknowledgements

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]



laderast/DSI_explore1 documentation built on May 29, 2019, 3:40 a.m.