get_block_polygons: Create polygons of a block with plots

Description Usage Arguments Value

View source: R/create_experiments.R

Description

Create polygons of a block with plots

Usage

1
2
3
4
5
6
7
8
get_block_polygons(
  treatment_number,
  plot_length,
  plot_width,
  border_width,
  crs,
  origin
)

Arguments

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.

crs

crs; coordinate referense system to be applied to new polygons.

origin

numeric vector; **optional** a named vector of the xy point of the bottom left (south west) corner of the block. Must have the names x and y. This should be provided if creating a connected (traditional) experiment.

centroid

numeric vector; **optional** a named vector of the xy point of the desired block centroid. Must have the names x and y. This should be provided if creating a disconnected experiment.

Value

A list of sf polygons with plot ids (1:treatment_number).


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