4. Highlight the new data table and insert a chart. Make sure you choose a
histogram. You might have to play around with some of the initial settings. Make
sure the switch rows/columns box is unchecked. Edit the graph so that each axis is
labelled, the scale along the y-axis is appropriate and the graph has a title.
Exercise 4 – Scatterplot
Goal: To create a multi-site scatterplot to describe the relationship between the number of
trees in each field site and the total basal area of the site.
1. For this scatterplot, we will be looking at a large data set because we are
comparing the trees at different schools. Go to the database and download all of
the data from the 2016 field season. The following schools submitted data in
2016: AWH, BCE, DFA, GDH, GUM, HAE, HBH, MHH, SHH, WAM. The
easiest way to get all of this data is to download the data for all sites. Then, in
Google Sheets, sort the data by ‘Date’ (See Exercise 3 for how to sort data.) Then
delete data for years other than 2016.
2. Create a new column after DBH (cm) and label it Basal Area.
3. Write a function to compute the basal area of each tree. If DBH is the length of
the diameter of the tree, basal area is the area of each tree if you were to take a
cross-section, or a slice of the trunk. We assume the cross-section of the trunk is a
circle, so the area of this cross section = pi*radius
2
. To find basal area, we use the
formula BA=0.00007854*(DBH)^2 where BA is the basal area of a tree in square
meters per hectare and DBH is the diameter of the tree at breast height in
centimeters.