larix: Longitudinal Larix dataset

larixR Documentation

Longitudinal Larix dataset

Description

Repeated measurements of microdensity data along 16 years, with climatic covariates.

Format

A dataframe with 11897 observations of the following variables

  • self id of the tree

  • dad id of sire

  • mum id of dam

  • x, y coordinates (in rows/cols)

  • rep factor replicate with 8 levels

  • bl factor block with 40 levels nested within rep

  • yr factor (growth) year with 16 ordered levels

  • map mean annual precipitation

  • mat mean annual temperature

  • mi martone index

  • LAS phenotype LAS

  • DOS phenotype DOS

Details

Each one of the 8 replicate is composed of 5 incomplete blocks, which gives a nested variable with 40 levels.

Examples

library(tidyr)
library(dplyr)
library(ggplot2)
data(larix)

## N observations by year and replicate
with(larix, table(yr, rep))

## Mean response evolution by replicate
larix %>%
  group_by(yr, rep) %>% 
  summarise(MLAS = mean(LAS)) %>% 
  ggplot(aes(yr, MLAS, group = rep)) +
  geom_line()
 
## Visualise trial by year
ggplot(larix, aes(x, y)) +
  geom_tile(aes(fill = LAS)) + 
  facet_wrap(~ yr)

## Correlations with environmental variables
if (require(GGally)) {
  ggpairs(larix[, c('map', 'mat', 'mi', 'LAS', 'DOS')])
}

famuvie/breedR documentation built on Aug. 6, 2024, 9:10 p.m.