This is a follow up to Exercise 3: Removing outliers.
We want to compare the circumference to height relationship in acacia to the same relationship for all trees in the region. These data are stored in two different tables thats should already be in your “data-raw” folder, TREE_SURVEYS.txt and ACACIA_DREPANOLOBIUM_SURVEY.txt. Make a graph with the relationship between CIRC
and HEIGHT
for all trees as gray circles in the background and the same relationship for acacia as red circles plotted on top of the gray circles. Scale both axes logarithmically. Include a linear model fitting for both sets of data, trying different linear models specified using the argument method =
. Provide clear labels for the axes.
Your plot should look something like this.
Once your are done with the exercises: