-
-
Save ramnathv/07bdc4d3c8ab2c19a2cd to your computer and use it in GitHub Desktop.
Standalone Presentation with Slidify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title : Standalone Presentation with Slidify | |
author : Ramnath Vaidyanathan | |
mode : standalone | |
--- | |
## Plain Text | |
This is a slide with plain text | |
> 1. Point 1 | |
> 2. Point 2 | |
> 3. Point 3 | |
--- | |
## R Plot | |
```{r message = F} | |
require(ggplot2) | |
qplot(wt, mpg, data = mtcars) | |
``` | |
--- | |
## NVD3 Plot | |
```{r results = 'asis', comment = NA, message = F, echo = F} | |
require(rCharts) | |
n1 <- nPlot(mpg ~ wt, data = mtcars, type = 'scatterChart', group = 'gear') | |
n1$print('chart2', include_assets = TRUE, cdn = TRUE) | |
``` | |
<style> | |
.rChart { | |
height: 500px; | |
} | |
</style> | |
--- | |
## Another NVD3 Plot | |
```{r results = 'asis', comment = NA, message = F, echo = F} | |
require(rCharts) | |
n2 <- nPlot(mpg ~ cyl, data = mtcars, type = 'scatterChart') | |
n2$print('chart3') | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Standalone Presentation with RPres | |
======================================================== | |
author: Ramnath Vaidyanathan | |
date: | |
Plain Text | |
======================================================== | |
This is a slide with plain text | |
- Point 1 | |
- Point 2 | |
- Point 3 | |
R Plot | |
======= | |
```{r message = F} | |
require(ggplot2) | |
qplot(wt, mpg, data = mtcars) | |
``` | |
NVD3 Plot | |
========== | |
```{r results = 'asis', comment = NA, message = F, echo = F} | |
require(rCharts) | |
n1 <- nPlot(mpg ~ wt, data = mtcars, type = 'scatterChart', group = 'gear') | |
n1$print('chart1', include_assets = TRUE, cdn = TRUE) | |
``` | |
<style> | |
.rChart { | |
height: 500px; | |
} | |
</style> | |
Another NVD3 Plot | |
================== | |
```{r results = 'asis', comment = NA, message = F, echo = F} | |
require(rCharts) | |
n2 <- nPlot(mpg ~ cyl, data = mtcars, type = 'scatterChart') | |
n2$print('chart3') | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment