View source: R/plot_split_rcbd_design.R
| plot_split_rcbd_design | R Documentation |
Plot fieldbook sketches for Splitplot-RCBD experimental designs generated
by design_split_rcbd().
plot_split_rcbd_design(
data,
factor = NA,
fill = "plots",
xlab = NULL,
ylab = NULL,
glab = NULL,
text_size = NULL,
wrap_width = NULL,
font_family = "Open Sans",
font_face = "plain"
)
data |
Fieldbook data frame from |
factor |
Character scalar. Column used to color experimental units.
If missing, |
fill |
Character vector. Column or columns used as labels inside each
experimental unit. Default is |
xlab |
Character scalar. Optional x-axis title. If |
ylab |
Character scalar. Optional y-axis title. If |
glab |
Character scalar. Optional legend title. |
text_size |
Optional positive numeric scalar indicating the plot-label
font size in typographic points ( |
wrap_width |
Optional positive integer indicating the approximate
maximum number of characters per line. If |
font_family |
Character scalar. Font family used in the sketch.
Defaults to |
font_face |
Character scalar. Font face used in labels, axes, facet
titles and legends. Defaults to |
The function does not recalculate or rearrange the experimental design. It
uses the existing rows and cols coordinates from the fieldbook, so the
physical arrangement and zigzag order generated by Tarpuy are preserved.
Every experimental unit is positioned with cols on the x axis and rows
on the y axis. The block column is used only to identify the block panels;
it never replaces the physical row coordinate.
Within each block, cols represents whole-plot positions. The visible
y-axis tick labels are derived from the rank of the actual rows values
inside each block, so the panels can display subplot positions while the
geometry continues to use the original fieldbook coordinates. A black
external border identifies each whole plot.
Automatic wrapping affects only the displayed labels. It does not change
plots, ntreat, treatment factors, QR codes, rows, columns or any other
fieldbook value.
A ggplot object.
## Not run:
plot_split_rcbd_design(
data = fieldbook,
factor = "wp_sp",
fill = c("plots", "ntreat"),
text_size = 9,
font_family = "Open Sans",
font_face = "plain"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.