Exercise 1. Scatterplots
CIRC on the x axis and AXIS1 (the maximum canopy
width) on the y axis. Label the x axis “Circumference” and the y axis “Canopy
Diameter”.scale_x_log10() and scale_y_log10()).ANT column (the species of ant symbiont living with the acacia)ANT column) each in a separate subplot.geom_smooth().Exercise 2. Histograms
ANT column).HEIGHT column). Label
the x axis “Height (m)” and the y axis “Number of acacia trees”.AXIS1 and AXIS2. Due to the way
the data is structured you’ll need to add a 2nd geom_histogram() layer that
specifies a new aesthetic. To make it possible to see both sets of bars
you’ll need to make them transparent with the optional argument alpha = 0.3.
Set the color for AXIS1 to “red” and AXIS2 to “black” using the fill =
argument. Label the x axis “Canopy Diameter(m)” and the y axis “Number of Acacia”.facet_wrap() to make the same plot as (3) but with one subplot for each experimental
treatment in TREATMENT. Set the number of bins in the histogram to 10.Once your are done with the exercises: