plot_TS_raw: Plot raw phenotypic time series data

Description Usage Arguments Value Author(s) Examples

View source: R/plot_TS_raw.R

Description

Plot raw phenotypic time series data

Usage

1
plot_TS_raw(data_TS, geno_id, rep_av = TRUE, main = "TS")

Arguments

data_TS

numeric matrix of dimension (N_genotype x N_rep) x N_days containing the phenotype information. the different columns represent the different time points (e.g. days, hours) of measurement.

geno_id

character vector representing the genotype indicator eventually replicated a number of time.

rep_av

Logical value indicating if the value should be averaged over replicates of no. Default = TRUE.

main

Character string representing the title of the graph. Default = 'TS'.

Value

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.

Author(s)

Vincent Garin

Examples

1
2
3
4
5
6
7
8
data(SG_PH_data)
data_TS <- SG_PH_data[, 6:28]
geno_id <- SG_PH_data$genotype

plot_TS_raw(data_TS, geno_id, rep_av = FALSE)

plot_TS_raw(data_TS, geno_id, rep_av = TRUE,
main = 'TS averaged over replicates')

ICRISAT-GEMS/SpaTemHTP documentation built on March 9, 2021, 12:12 a.m.