diff --git a/ironwood_plots.R b/ironwood_plots.R index dcd532f..fc7ce87 100644 --- a/ironwood_plots.R +++ b/ironwood_plots.R @@ -6,13 +6,16 @@ library(readODS) library(tidyverse) library(dplyr) +## +# parse the input data +## # read a data frame from the ods document df <- read_ods("ironwood_data_cleaned.ods", sheet = 1) - ## -# asses the tree health +# 1. asses the tree health +# - create an overview of the populations health ## # First, let's create a vector of condition names corresponding to the health index numbers @@ -40,7 +43,8 @@ box() text(x = barplot(percentage, plot = FALSE), y = percentage, labels = paste0(round(percentage, 1), "%"), pos = 3) ## -# Perform a shapiro-wilk normality test +# 2. perform a shapiro-wilk normality test +# - the goal is to see if the health is normally distributed ## # Perform Shapiro-Wilk test @@ -57,8 +61,9 @@ if (p_value < 0.05) { } ## -# Tasks: +# ToDo Tasks: ## -# 1. find average dbh -# 2. find \ No newline at end of file +# 3. calculate the average DBH and try to correlate it with the health index +# 4. plot health indices of each site on a map and try to find patterns +# 5. try to fit health and location data in one plot \ No newline at end of file