rotate_polygon: Merge experiment or block polygon and rotate by a give angle

Description Usage Arguments Value Note

View source: R/create_experiments.R

Description

Merge experiment or block polygon and rotate by a give angle

Usage

1
rotate_polygon(original_experiment, rotation_angle)

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.

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.

Note

Taken from https://stackoverflow.com/questions/51282724/creating-a-regular-polygon-grid-over-a-spatial-extent-rotated-by-a-given-angle


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