get_experiment_origins: Find the bottom left (south west) corner of each block in a...

Description Usage Arguments Value

View source: R/create_experiments.R

Description

Find the bottom left (south west) corner of each block in a connected experiment

Usage

1
2
3
4
5
6
7
8
9
get_experiment_origins(
  centroid,
  treatment_number,
  plot_length,
  plot_width,
  border_width,
  block_rows,
  block_cols
)

Arguments

centroid

numeric vector; named vector of the xy point of the center of the whole experiment. Must have the names x and y.

treatment_number

integer; the number of treatments or plots that should be included in each block.

plot_length

numeric; desired plot length in meters.

plot_width

numeric; desired plot width in meters.

border_width

numeric; desired width between plots in meters.

block_rows

integer; number of rows the blocks should be arranged into. block_rows * block_cols equals total number of blocks.

block_cols

integer; number of cols the blocks should be arranged into. block_rows * block_cols equals total number of blocks.

Value

A matrix of the xy origins (bottom left/south west corner) of each block in an experiment. The matrix columns are named x and y.


smmueller/plotdesignr documentation built on Jan. 5, 2022, 10:55 a.m.