get_experiment_polygons: Create polygons for simulation experiment

Description Usage Arguments Value

View source: R/create_experiments.R

Description

Create polygons for simulation experiment

Usage

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

Arguments

xy_coords

matrix; A matrix with columns x, y representing the coordinates of either the centroid of each block (disconnected experiment), or the centroid of a connected experiment.

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.

Value

An sf object containing the polygons for each plot in an experiment.


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