Returns the field book of a design with the ROW and
COLUMN of every plot, for the layout, planter and stacking chosen.
This is the field book that plot() draws and that the app
exports.
The field books of CRD(), RCBD(), latin_square(),
full_factorial(), split_plot(), split_split_plot(),
strip_plot(), incomplete_blocks(), row_column() and
the lattice designs have no field coordinates: their plots can be
arranged in several ways, and the layouts that renumber the plots along
the planting path also change PLOT. The other designs place their
plots when they are built; their field book already has ROW and
COLUMN, and it is returned as it is.
Arguments
- x
A design created by a FielDHub function.
- layout
Layout option, a whole number. The options depend on the design, the planter and the stacking; an unavailable option is an error that lists the available ones.
- planter
Order in which the plots are planted:
"serpentine"(by default) or"cartesian".- stacked
How the reps are arranged:
"vertical"(by default),"horizontal", or"grid_panel"for designs in incomplete blocks and split plots in complete blocks with more than two reps.
Value
A data frame: the field book of every location with the columns
ID, LOCATION, PLOT, ROW and COLUMN
first.
Examples
rcbd <- RCBD(t = 6, reps = 3, plotNumber = 101, seed = 1)
head(field_layout(rcbd))
#> ID LOCATION PLOT ROW COLUMN REP TREATMENT
#> 1 1 loc1 101 1 1 1 T1
#> 2 2 loc1 102 1 2 1 T4
#> 3 3 loc1 103 1 3 1 T3
#> 4 4 loc1 104 1 4 1 T6
#> 5 5 loc1 105 1 5 1 T2
#> 6 6 loc1 106 1 6 1 T5
# Blocks side by side, plots planted row by row
head(field_layout(rcbd, stacked = "horizontal", planter = "cartesian"))
#> ID LOCATION PLOT ROW COLUMN REP TREATMENT
#> 1 1 loc1 101 1 1 1 T1
#> 2 2 loc1 102 2 1 1 T4
#> 3 3 loc1 103 3 1 1 T3
#> 4 4 loc1 104 4 1 1 T6
#> 5 5 loc1 105 5 1 1 T2
#> 6 6 loc1 106 6 1 1 T5