ggpie: Pie Charts with ggplot2

ggpieR Documentation

Pie Charts with ggplot2

Description

This function produces pie charts with ggplot2.

Usage

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


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.