rotate_experiment: Rotate either connected or disconnected experiment by given...

Description Usage Arguments Value

View source: R/create_experiments.R

Description

Rotate either connected or disconnected experiment by given angle

Usage

1
rotate_experiment(original_experiment, rotation_angle, experiment_type)

Arguments

original_experiment

sf; an sf object containing the polygons for each plot and/or blocks. The rotation will occur around the centroid of original_experiment. Therefore, if each block should be rotated individually, they need to be passed one at a time.

experiment_type

string; which experiment type should be created? Current options are "connected", which creates as single traditional experiment and expects the user to select only one centroid, or "disconnected" which expects the user to select the centroid of each block independently.

rotaion_anlge

integer; angle by which the original experiment should be rotated.

Value

The rotated sf object. Will have the same dimentions as original_experiment but with the POLYGON geometries rotated.


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