analysis: Function to look for significant difference between steady...

Description Usage Arguments Value Author(s) Examples

Description

This function takes the two given data frames of licor data from two different genotypes and runs ttests at each CO2 level 400ppm, 800ppm, 100ppm to look for significant differences between gsw and A values. This function also produces graphs showing averages and standard error bars of gsw and A for both genotypes.

Usage

1
analysis(genotype1, genotype2)

Arguments

genotype1

A data frame output by cleandata containing measurements relevant for graphing CO2 steady states of one genotype replication.

genotype2

A data frame output by cleandata containing measurements relevant for graphing CO2 steady states of one genotype replication.

Value

ttest1

A t-test comparing the last 10 genotype 1 gsw data points of the 400ppm CO2 stead-state and the last 10 gsw steady-state points at 400ppm from genotype 2.

ttest2

A t-test comparing the last 10 genotype 1 gsw data points of the 800ppm CO2 stead-state and the last 10 gsw steady-state points at 800ppm from genotype 2.

ttest3

A t-test comparing the last 10 genotype 1 gsw data points of the 100ppm CO2 stead-state and the last 10 gsw steady-state points at 100ppm from genotype 2.

ttest4

A t-test comparing the last 10 genotype 1 A data points of the 400ppm CO2 stead-state and the last 10 A steady-state points at 400ppm from genotype 2.

ttest5

A t-test comparing the last 10 genotype 1 A data points of the 800ppm CO2 stead-state and the last 10 A steady-state points at 800ppm from genotype 2.

ttest6

A t-test comparing the last 10 genotype 1 A data points of the 100ppm CO2 stead-state and the last 10 A steady-state points at 100ppm from genotype 2.

a_graph

A bar graph with Net Photosynthesis on the y-axis and the two genotypes being shown at three different CO2 levels (400ppm, 800ppm, 100ppm) on the x-axis. Error bars indicate the standard error for each average.

gsw_graph

A bar graph with stomatal conductance on the y-axis and the two genotypes being shown at three different CO2 levels (400ppm, 800ppm, 100ppm) on the x-axis. Error bars indicate the standard error for each average.

Author(s)

Robert Twohey III

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#import example data
data1 <- system.file("extdata", "func3_1_example.csv", package = "licordataanalysis")
data2 <- system.file("extdata", "func3_2_example.csv", package = "licordataanalysis")

#run function
data1 <- read.csv(data1)
data2 <- read.csv(data2)
analize <- analysis(data1, data2)
analize[[1]]
analize[[2]]

rj2E/licordataanalysis documentation built on May 28, 2019, 11:05 p.m.