Rows: 175 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (5): Timestamp, First name, Last name, Candy type, Box code
dbl (6): Red, Green, Orange, Yellow, Blue, Brown
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
candy_raw
Removing Columns
Removing Timestamp, Candy_Type, and Box_Code columns.
candy_plot <-ggplot( candy_avg, aes(x =reorder(color, avg_candies), y = avg_candies )) +geom_col() +coord_flip() +geom_text(aes(label = avg_candies), hjust =1.5, color ="white") +labs( title ="Sweet Stats", subtitle =str_wrap("Students in Reporting with Data each recorded the count of how many specific colors were in their M&M's package. Data is taken from a long-term dataset."), caption ="By Ryland Russell", x ="", y ="Average Count") +theme_bw()candy_plot