WebR Charlie Data Example

Exercises

Let’s make some more graphs.

Add code to make a scatterplot that shows price per item by yumminess. Color the points by yumminess and be sure to have nice axis labels.

Make a boxplot that shows if the long-lasting treats cost more overall than other treats. Are long lasting treats a better buy? Then color the graph by treats that are thrown out to see a more nuanced view.

See if you can use geom_bar() to make a bar graph that shows how many treats from each brand there are. (Hint: you don’t need to put anything for y, R will automatically count for you.) Make your graph look as legible as possible, this may require a little Googling to learn some new things about axis labels.