terraref / traitvis-webapp

Shiny application for visualizing trait data
https://traitvis.workbench.terraref.org/
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Add time series of heritability below trait time series plots #42

Closed dlebauer closed 5 years ago

dlebauer commented 5 years ago

For each season x date x trait, compute heritability and plot with date on the x axis and repeatability on the y axis:

Sample code:

library(heritability)
h2<-repeatability(data.vector=phen[,grep(“canopy_height”,names(phen))],geno.vector=phen$cultivar)

For more context:

dlebauer commented 5 years ago

repeatability and heritability are similar calculations; repeatability is within season heritability

so we will use the heritability::repeatability() function and have y axis 'repeatability (within season heritability)'

dlebauer commented 5 years ago

image

kimberlyh66 commented 5 years ago

Do you want repeatability to be calculated for a specific date and trait for all sub experiments in a season or just for a single sub experiment?

dlebauer commented 5 years ago

The same sub experiment / subset of the data used in the time series plot above.

kimberlyh66 commented 5 years ago

Pull request #54