Conclusion
Using the packages ggplot2, dplyr, and ggfortify, it is possible to create a linear regression model and test for linearity using a shapiro test. Creating the first ggplot, there is a possible relationship between plant growth rate and soil moisture content and that relationship looks to be positive. Creating a scatter plot graph, the lack of pattern confirms the data has a correspondence. The shapiro test showed normal residuals. Looking at the plot we made for assessing linearity, there is no wedge, so it is good to proceed.
Based on the summary of the plantmod data, soil moisutre had a positive effect on plant growth. For each unity increase in soil moisture, plant growth increased by 12.7 mm/week (p<0.01). The last plot created shows the shaded region representing the 95% confidence interval for the mean predicted plant growth at a given soil moisture level. In conclusion, we can confirm there is a relationship between plant growth and soil moisture.