Note: You need to create a RMarkdown document to do your HW. Make sure to show 1. Your code, 2. The output, 3. The descriptions where necessary.

  1. Exercise 2.7 MODIFIED:

Import data from the black spruce case study in Section 1.10 in to R.

SOLUTION:

# Your code goes here
  1. Compute the numeric summaries (Mean, Standard deviation, Minimum, Median, IQR, Range, Maximum, etc.) for the height changes (Ht.change) of the seedlings.

SOLUTION:

# Your code goes here
  1. Create a histogram and normal quantile plot for the height changes of the seedlings. Is the distribution approximately normal?

SOLUTION:

# Your code goes here
  1. Create a boxplot to compare the distribution of the change in diameters of the seedlings (Di.change) grouped by whether or not they were in fertilized plots. Describe the graph.

SOLUTION:

# Your code goes here
  1. Use %>% operator via dplyr to find the Mean, Standard deviation, Median, IQR in the same order of the diameter changes for the two levels fertilization.

SOLUTION:

# Your code goes here
  1. Use ggplot to create a scatter plot of the height changes against the diameter changes, describe the relationship.

SOLUTION:

# Your code goes here