get_block_origin: Find the bottom left (south west) corner of a block

Description Usage Arguments Value Note

View source: R/create_experiments.R

Description

Find the bottom left (south west) corner of a block

Usage

1
2
3
4
5
6
7
get_block_origin(
  centroid,
  treatment_number,
  plot_length,
  plot_width,
  border_width
)

Arguments

centroid

numeric vector; named vector of the xy point of the desired block centroid. 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.

Value

A named vector of xy coordinates describing the location of the bottom left (south west) corner of one block.

Note

border_width is only used to to create borders between plots inside the block. The block is draw with no external border.


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