pieChart: Draw a fast pie chart

Description Usage Arguments Value Examples

View source: R/doEDA.R

Description

pieChart() saves the repeating data manipulation and ggplot2 graphic grammars to produce a pie chart. It is for visualizing distribution of factor levels of a single variable.

Usage

1
2
pieChart(.tbl_df, .group, start = 0, direction = 1, labelon = TRUE,
  ...)

Arguments

.tbl_df

A data frame

.group

A factor variable

start

coord_polar() argument to control where the counting position starts. Defaults at 0

direction

1, clockwise; -1, anticlockwise

labelon

logical scalar. Should labels be added via geom_text()?

...

arguments passed down to labs() for title, subtitle, etc.

Value

A ggplot object

Examples

1
pieChart(invest, gender)

chuckleong21/doEDA documentation built on Nov. 4, 2019, 8:52 a.m.