Skip to content

Instantly share code, notes, and snippets.

@mrjoh3
Created June 23, 2016 21:12
Show Gist options
  • Save mrjoh3/5e5383d6c5078c3ceb96e45c1fd359d7 to your computer and use it in GitHub Desktop.
Save mrjoh3/5e5383d6c5078c3ceb96e45c1fd359d7 to your computer and use it in GitHub Desktop.
Testing dynamic resize within flexdashboard
---
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