Acacia and Ants Histograms (Graphing)
An experiment in Kenya has been exploring the influence of large herbivores on plants.
Check to see if ACACIA_DREPANOLOBIUM_SURVEY.txt
is in your workspace.
If not, download it.
Read it into R using the following command:
acacia <- read_tsv("data/ACACIA_DREPANOLOBIUM_SURVEY.txt", na = c("dead"))
- Make a bar plot of the number of acacia with each mutualist ant species (using the
ANT
column). - Make a histogram of the height of acacia (using the
HEIGHT
column). Label the x axis “Height (m)” and the y axis “Number of Acacia”. - Make a non-stacked histogram of the height of acacia (using the
HEIGHT
column) colored by theTREATMENT
. Set the transparency (usingalpha
) to 0.5 so that you can see all of the bars. Label the x-axis “Heigth (m)” and the y-axis “Count of Acacia”. Set the binwidth to 0.5.