Created
June 25, 2016 07:55
-
-
Save mrjoh3/e4f191bd4259a671d19ba7687a862ffb to your computer and use it in GitHub Desktop.
Test widget resize in flexdashboard pages
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: "Widget Size Test" | |
output: | |
flexdashboard::flex_dashboard | |
--- | |
```{r setup, include=FALSE} | |
#devtools::install_github("mrjoh3/c3") | |
library(flexdashboard) | |
library(c3) | |
data = data.frame(a = abs(rnorm(20) * 10), | |
b = abs(rnorm(20) * 10), | |
date = seq(as.Date("2014-01-01"), by = "month", length.out = 20)) | |
``` | |
First Plot | |
================== | |
### First Plot | |
```{r} | |
c3(data) | |
``` | |
Second Plot | |
================== | |
### Second Plot | |
```{r, fig.height=6} | |
c3(data) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment