update task list
This commit is contained in:
@@ -6,13 +6,16 @@ library(readODS)
|
|||||||
library(tidyverse)
|
library(tidyverse)
|
||||||
library(dplyr)
|
library(dplyr)
|
||||||
|
|
||||||
|
##
|
||||||
|
# parse the input data
|
||||||
|
##
|
||||||
|
|
||||||
# read a data frame from the ods document
|
# read a data frame from the ods document
|
||||||
df <- read_ods("ironwood_data_cleaned.ods", sheet = 1)
|
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
|
# 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)
|
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
|
# Perform Shapiro-Wilk test
|
||||||
@@ -57,8 +61,9 @@ if (p_value < 0.05) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
# Tasks:
|
# ToDo Tasks:
|
||||||
##
|
##
|
||||||
|
|
||||||
# 1. find average dbh
|
# 3. calculate the average DBH and try to correlate it with the health index
|
||||||
# 2. find
|
# 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
|
||||||
Reference in New Issue
Block a user