Character scalar. Column used to color experimental units.
If missing, "type" is used.
fill
Character vector. Column or columns used as labels inside each
experimental unit. Default is "plots".
xlab
Character scalar. Optional x axis title.
ylab
Character scalar. Optional y axis title.
glab
Character scalar. Optional legend title.
text_size
Optional positive numeric scalar indicating the plot-label
font size in typographic points (pt). If NULL or NA, the function
calculates an automatic size: 10 pt for one label column, 8 pt for two
columns and 7 pt for three or more columns.
wrap_width
Optional positive integer indicating the approximate
maximum number of characters per line. If NULL or NA, labels are not
wrapped. Underscores are displayed as spaces only in the sketch.
font_family
Font family used in the sketch. Defaults to
"Open Sans". If it or the optional systemfonts package is unavailable,
the function silently uses "sans".
font_face
Font face used in the sketch. Defaults to "plain",
equivalent to regular/normal text.
Details
This function is intended for augmented designs with checks, entries and
optional empty experimental units. It uses:
cols as the x axis.
block as the y axis.
type to distinguish checks, tests and empty plots.
Empty plots are shown in grey when type is NA or empty.
Label wrapping changes only the displayed text. It does not modify
entry, plots, ntreat, QR codes or any other fieldbook value.
text_size is expressed in points, like common word processors. Internally
it is converted to the size unit expected by ggplot2::geom_text().