ggplot2_piechart | R Documentation |
ggplot2-style piechart
ggplot2_piechart( input_data, ..., colors = NULL, digits = 0, sorted = TRUE, theme = NULL )
input_data |
data frame |
... |
further arguments (optional) |
colors |
named character |
digits |
digits after decimal |
sorted |
logical |
BY2011_NOx_2015 <- BY2011_annual %>% filter(year == 2015, pol_abbr == "NOx") BY2011_NOx_2015_by_cnty <- BY2011_NOx %>% annual_emissions_by(cnty_abbr) BY2011_NOx_2015_by_cnty %>% dplyr::select(cnty_abbr, ems_qty) %>% arrange(ems_qty) %>% ggplot2_piechart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.