Description Usage Arguments Details Value Author(s) See Also Examples
Plot G-BLUEs time series data.
1 |
data_TS |
|
trend |
Optional |
h2 |
Optional heritability |
TW_lim |
Optional time window limits |
main |
|
The function plots the times series data of phenotyping data per genotype replicate or averaged over genotype replicate using the ggplot2 package.
Plot of the G-BLUEs time series. The optional trend will be ploted in red. The heritability will be ploted in dashed blue and time window limits in black.
Soumyashree Kar, Vincent Garin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(SG_PH_data)
data <- SG_PH_data
geno_id <- data$genotype
g_means <- matrix(NA, 384, 23)
for(i in 1:23){
g_av <- tapply(X = data[, i + 5], INDEX = geno_id,
FUN = function(x) mean(x, na.rm = TRUE))
g_means[, i] <- g_av
}
rownames(g_means) <- names(g_av)
plot_TS(data_TS = g_means, main = 'Raw data genotype means')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.