Description Usage Arguments Value Examples
Creates a standardized bar chart for the data and variable combination.
1 |
data |
The data frame or tibble |
variable |
A string of the variable you wish to plot |
title |
The title for the pie chart |
Returns a ggplot2 plot object.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.