userfriendlyscience (version 0.7.2)

ggPie: A ggplot pie chart

Description

THis function creates a pie chart. Note that these are generally quite strongly advised against, as people are not good at interpreting relative frequencies on the basis of pie charts.

Usage

```ggPie(vector,
scale_fill = scale_fill_viridis(discrete=TRUE))```

Arguments

vector

The vector (best to pass a factor).

scale_fill

The ggplot scale fill function to use for the colors.

Value

A ggplot pie chart.

Examples

```# NOT RUN {
ggPie(mtcars\$cyl);
# }
```