lunch_pie: Create Proportional Bar Chart

Description Usage Arguments Value Examples

View source: R/lunch_pie.R

Description

Creates a standardized bar chart for the data and variable combination.

Usage

1
lunch_pie(data, variable, title)

Arguments

data

The data frame or tibble

variable

A string of the variable you wish to plot

title

The title for the pie chart

Value

Returns a ggplot2 plot object.

Examples

1
2
3
data_frame <- data.frame(Lunch_Eaten=c("Yes","No","Yes"),
                         Location=c("Desk", "Restaurant", "Desk"))
lunch_pie(data_frame, "Lunch_Eaten", "Percentage of Lunch Eaters")

jmiahjones/lunch.time documentation built on Dec. 14, 2017, 12:53 p.m.