Created
June 23, 2016 21:12
-
-
Save mrjoh3/5e5383d6c5078c3ceb96e45c1fd359d7 to your computer and use it in GitHub Desktop.
Testing dynamic resize within flexdashboard
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: "Testing Pier Resize" | |
output: | |
flexdashboard::flex_dashboard: | |
orientation: columns | |
vertical_layout: fill | |
horizontal_layout: fill | |
--- | |
```{r setup, include=FALSE} | |
library(flexdashboard) | |
library(c3) | |
library(pier) | |
data <- data.frame(label = c('Environment','Education','Business','Community'), | |
value = c(104,119,638,1250), | |
color = RColorBrewer::brewer.pal(4, 'Spectral')) | |
``` | |
C3 library {.storyboard} | |
================== | |
### Pie Resize | |
```{r} | |
data %>% pier() %>% pie.header('Expenditure of the government') | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment