garlicMustard<-read.csv("/Users/jonathan/Downloads/ENVS 286 Garlic Mustard Data.csv")
summary(garlicMustard)## transect plantHeight flowerNo leafNo
## 0m : 1 Min. :42.00 Min. : 0.00 Min. : 7.00
## 10m : 1 1st Qu.:56.25 1st Qu.: 1.00 1st Qu.: 31.00
## 11m : 1 Median :59.75 Median : 4.00 Median : 47.00
## 12m : 1 Mean :63.65 Mean : 7.50 Mean : 62.64
## 13m : 1 3rd Qu.:73.30 3rd Qu.:10.25 3rd Qu.: 75.75
## 14m : 1 Max. :84.00 Max. :30.00 Max. :176.00
## (Other):16
## seedPodNo stalkNo
## Min. : 4.0 Min. :1.0
## 1st Qu.: 45.5 1st Qu.:2.0
## Median : 78.0 Median :3.0
## Mean :111.9 Mean :3.5
## 3rd Qu.:162.5 3rd Qu.:4.0
## Max. :297.0 Max. :7.0
##
###List of transformations of data points###
garlicMustard$plantHeight## [1] 68.0 84.0 67.0 65.0 58.5 42.0 57.8 49.6 79.0 80.0 60.0 56.0 84.0 70.0
## [15] 58.0 57.0 74.4 76.8 59.5 55.2 54.8 43.7
garlicMustard$seedPodNoSqrt<-sqrt(garlicMustard$seedPodNo)
garlicMustard$flowerNoSqrt<-sqrt(garlicMustard$flowerNo)
garlicMustard$stalkNoLog<-log10(garlicMustard$stalkNo+0.0001)
garlicMustard$leafNoLog<-log10(garlicMustard$leafNo+0.0001)In this experiement we looked at 5 different factors dealing with Mustard Garlic plants. Through running linear models I found that seed pod number and leaf number are the most correlated(p-value<0.001, R-Squared=0.7904). For this test we rejected the null hypothesis because of the significance of thep p-value. The factors with the least correlation was the seed pod number and the and flower number(p-value=0.0863, R-Squared=0.0969). For this test we could not reject the p-value and there for there was no significance between these values. The data for flower number was transformed using the square root function. The data for seed pods was transformed using the square root function as well. The data for leaf data was also transformed using the log function. The reason for this finding is because when you think about a plant if the plant has more leaves it can photosynthesize better and have more energy to produce seeds. I think that the reason why there is such a small correlation between flower number and seed pod number is because they’re both different parts of reproduction so there isn’t a need to have a lot of both of them. Also it’s early in the season so most of the flowers probably haven’t bloomed yet.