ggplot2_piechart: ggplot2-style piechart

ggplot2_piechartR Documentation

ggplot2-style piechart

Description

ggplot2-style piechart

Usage

ggplot2_piechart(
  input_data,
  ...,
  colors = NULL,
  digits = 0,
  sorted = TRUE,
  theme = NULL
)

Arguments

input_data

data frame

...

further arguments (optional)

colors

named character

digits

digits after decimal

sorted

logical

Examples

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()

BAAQMD/ggtools documentation built on Feb. 8, 2023, 6:22 p.m.