This homework is due on the deadline posted on edX. Please submit a .pdf file of your output and upload a .zip file containing your .Rmd file. Do NOT include your name or EID in your filenames.

In this homework you will be working with the chickwts dataset built into R. This data set contains weight measurements of chicks fed on different food sources to assess their effectiveness on growth rate.

head(chickwts)
##   weight      feed
## 1    179 horsebean
## 2    160 horsebean
## 3    136 horsebean
## 4    227 horsebean
## 5    217 horsebean
## 6    168 horsebean

Problem 1: Use ggplot to make a histogram of the weight column. Manually choose appropriate values for binwidth and center. Explain your choice of values in 2-3 sentences.

ggplot(chickwts, aes(weight)) +
  geom_histogram(binwidth = 10, center = 5)

Your explanation goes here.

Problem 2: Modify the plot from Problem 1 to show one panel per feed. Hint: Use facet_wrap().

ggplot(chickwts, aes(weight)) +
  geom_histogram(binwidth = 10, center = 5) +
  facet_wrap(vars(feed))