ggpie {DAMisc}R 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


[Package DAMisc version 1.7.2 Index]