new workshop slides


Using R markdown, knitr, slidify to generate nicer slides that include R code

Quick example with ggplot2

ggplot(diamonds, aes(carat, price))+geom_point(color="firebrick")

plot of chunk unnamed-chunk-1

Two column example

First plot

ggplot(diamonds, aes(carat, price))+geom_point(color="cadetblue")

plot of chunk unnamed-chunk-2

Second plot

ggplot(diamonds, aes(carat, price, color=clarity))+geom_point()

plot of chunk unnamed-chunk-3

Now I should go back to one column (fullwidth)