Acacia and Ants (Graphing)
An experiment in Kenya has been exploring the influence of large herbivores on plants.
If ACACIA_DREPANOLOBIUM_SURVEY.txt is not in your workspace download it.
Read it into R using the following command:
acacia <- read_tsv("ACACIA_DREPANOLOBIUM_SURVEY.txt", na = c("dead"))
- Make a scatter plot with
CIRCon the x axis andAXIS1(the maximum canopy width) on the y axis. Label the x axis “Circumference” and the y axis “Canopy Diameter”. - Make a scatter plot with
AXIS1on the x axis andAXIS2on the y axis (the two measurements of canopy diameter). Set the pointsizeto 2 andcolorto"darkgreen". Label the x axis “Canopy Diameter Axis 1” and the y axis “Canopy Diameter Axis 2”. - Look at the relationship between
AXIS1andAXIS2on only the full herbivore exclosures by: filtering the data so that it only contains the plots “S1TOTAL”, “S2TOTAL”, and “S3TOTAL”, usingdrop_na()to remove rows where eitherAXIS1orAXIS2areNA, and making a scatter plot of this filtered data withAXIS1on the x axis andAXIS2on the y axis. Label the x axis “Canopy Diameter Axis 1” and the y axis “Canopy Diameter Axis 2”.