layout_mat: Construct layout matrix for field plots

View source: R/field_plots.R

layout_matR Documentation

Construct layout matrix for field plots

Description

Construct a matrix for layout with parameters in rows and years in columns.

Usage

layout_mat(nyears, incl_gen = TRUE, npar = 1, colorbar = FALSE)

layout_1mat(nyears, incl_gen = TRUE, idxoffset = 0, colorbar = FALSE)

layout_indoffset(nyears, incl_gen = TRUE, npar = 1, colorbar = FALSE)

layout_widths(nyears, incl_gen = TRUE, npar = 1, colorbar = FALSE)

Arguments

nyears

Number of years to plot

incl_gen

Include generative fields?

npar

Number of parameters to plot

colorbar

Include colorbar?

idxoffset

Largest of the previously used indices; this layout matrix will start at idxoffset + 1.

Value

A layout matrix

Functions

  • layout_1mat: Layout matrix for a single parameter

  • layout_indoffset: Vector of index offsets for each parameter in field plot

  • layout_widths: Widths of field plots; thinner for colorbar if present

Author(s)

John K Best


jkbest2/spatq documentation built on Sept. 22, 2022, 3:22 a.m.