plotResidualsBtwYears: Plot residuals between years

plotResidualsBtwYearsR Documentation

Plot residuals between years

Description

Plot residuals between years to check their temporal independence. Especially useful as a diagnostic of model fit for statistical analysis of perennial plants.

Usage

plotResidualsBtwYears(
  df,
  colname.res,
  years,
  cols.uniq.id,
  blocks = NULL,
  las = 1,
  lgd.pos = "topright",
  ...
)

Arguments

df

data frame with a column given by colname.res, a column named "year", a column named "block" if blocks is specified, as well as any other column specified in cols.uniq.id

colname.res

name of the column containing the residuals

years

vector with two years as character

cols.uniq.id

vector of column name(s) allowing to identify each plant and pair it between years or years and blocks, e.g. c("geno","block","rank","location") or "geno"

blocks

if not NULL, vector of two blocks (e.g. c("A","A") or c("A","B"))

las

style of axis labels, see par

lgd.pos

position of the legend

...

arguments passed on to plot, such as main

Value

invisible data frame of the data used to make the plot

Author(s)

Timothee Flutre


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.