Description Usage Arguments Value Examples
This function produces a bar plot of the most popular Halloween candies
1 | plot_candy(df, n = 10, candy_name_col, rank_col)
|
df |
a dataframe containing information on the candies |
n |
the number of top candies to plot. Default is set at 10 |
candy_name_col |
the name of the column in |
rank_col |
the name of the column in |
a ggplot object
1 | plot_candy(candy_data, candy_name_col = "competitorname", rank_col = "winpercent")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.