(6) Look at Plot 1. What are your observations from this plot? Does your hypothesis from question (4) appear to be supported? Explain.
At lower levels of N, Y (the yield) of the plot tends to be lower whereas at higher levels of N, Y tends to be higher. This plot seems to show that as Nitrogen treatments increase (i.e. level of total nitrogen increases), on average the yield of the plot will be higher. This suggests a positive relationship between N and Y and overall supports the hypothesis I presented in question 4.
(7) Plot 2: Now use ggplot to create a side-by-side boxplot, which illustrates the yield distribution for each oat variety treatment. Let’s add some color! Fill the boxes with a different color for each variety.
ggplot(oats, aes(x = V, y = Y, fill = V)) +
geom_boxplot()

(8) Look at Plot 2. What are your observations from this plot? Do any of the varieties stand out as being the best producer? Explain.
This plot suggests that of the three varieties, the Marvellous variety tends to have the highest average yield at around 113 1/4 lbs per subplot. The average yield and small variance of this variety allows it to stand out among the other types of varieties. The second highest average yield comes from the Golden.rain variety at a little over 100 1/4lbs per subplot and the lowest average yield coming from the Victory variety at around 90 1/4lbs per subplot. Both of these also have a relatively similar variance, which is larger than that of the Marvellous variety.
(9) Plot 3: Add facets to your plot from part 6 to compare yields across nitrogen fertilizer concentration levels and the three oat varieties.
ggplot(oats, aes(x = N, y = Y, fill = V)) +
geom_boxplot() +
facet_grid(N~V)

(10) Look at Plot 3. What are your observations from this plot? Do the trends and relationships you observed in parts (6) and (8) appear to be consistent? For instance, does that ordering of the varieties remain consistent across the levels of the fertilizer concentrations or does it change? What do you observe?
This plot suggests that, depending on the concentration of fertilizer being used, different oat varieties might be more effective than another as opposed to just one concentration or one variety being the best to use in all cases as is suggested by the other plots. Plot 1 shows that the highest yields come from the highest concentration of nitrogen while Plot 2 suggests that the Marvellous variety is the highest yielding of the 3 types. So even though the Marvellous variety has the highest average yield overall, at the largest concentration of nitrogen fertlizer, the highest average yielding variety is actually the Golden.rain strain. Other anomalies occur as well, including the fact that a farmer can use a lower concentration of nitrogen with specific strains to yield the same amounts as another variety with a higher concentration of nitrogen. For example, a farmer planting a Marvellous strain at a nitrogen level of 0.2 yields the same amount as a Golden.rain strain at a nitrogen level of 0.4.