Skip to contents

Plot fieldbook sketches for augmented experimental designs generated by design_augmented().

Usage

plot_augmented_design(
  data,
  factor = NA,
  fill = "plots",
  xlab = NULL,
  ylab = NULL,
  glab = NULL
)

Arguments

data

Fieldbook data frame from an augmented design.

factor

Character. Column used to color experimental units. Default is "type" when available.

fill

Character vector. Column or columns used as labels inside each experimental unit. Default is "plots".

xlab

Character. Optional x axis title.

ylab

Character. Optional y axis title.

glab

Character. Optional legend title.

Value

A ggplot object.

Details

This function is intended for augmented designs with checks and entries. It uses:

  • cols as the x axis.

  • block as the y axis when available.

  • type to distinguish checks, tests and empty plots.

Empty plots are shown in grey when type is NA.