Acacia and Ants Stacked Plots (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 non-stacked histogram of the height of acacia (using the
HEIGHTcolumn) colored by theTREATMENT. Set the transparency (usingalpha) to 0.5 so that you can see all of the bars. Label the x-axis “Height (m)” and the y-axis “Count of Acacia”. Set the binwidth to 0.5. - Make a non-stacked histogram of the circumference of acacia (using the
CIRCcolumn) colored by theANTcolumn. Set the transparency (usingalpha) to 0.5 so that you can see all of the bars. Label the x-axis “Circumference (cm)” and the y-axis “Count of Acacia”. Set the binwidth to 5.