ggpie: Pie Charts with ggplot2

Description Usage Arguments Value

Description

This function produces pie charts with ggplot2.

Usage

1
ggpie(data, variable, addPct = c("pie", "none", "legend"))

Arguments

data

A data frame to pass to the ggplot function

variable

A variable to be plotted.

addPct

Where labels should be added - "none" gives no labels, "legend" addes percentages to the color legend, "pie" addes the legends to the pie pieces.

Value

a ggplot


DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.