Created
June 22, 2016 15:17
-
-
Save ThoDuyNguyen/c1a4f42fd160faaa67a3eb25af2ba58e to your computer and use it in GitHub Desktop.
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: "Untitled" | |
output: | |
flexdashboard::flex_dashboard: | |
orientation: columns | |
vertical_layout: fill | |
horizontal_layout: fill | |
--- | |
```{r setup, include=FALSE, cache=TRUE} | |
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')) | |
``` | |
Pier library | |
================== | |
### Pie chart | |
```{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