Description Usage Arguments Value Note
View source: R/create_experiments.R
Make an experiment
1 2 3 4 5 6 7 8 9 10 | make_experiment(
experiment_type,
clustered_sf,
n_locations,
config,
plot_name,
rotation_angle = NULL,
block_cols = NULL,
block_rows = NULL
)
|
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. |
clustered_sf |
sf; An sf object with a column |
config |
list; a named list containing all the needed inputs. The following must be included:
|
plot_name |
string; name that should be given to the figure. Do not include ".pdf".
If no plotting directory has been given in the |
rotation_angle |
integer; **optional** angle by which the original experiment should be rotated. Default is NULL, which will result in plots oriented North-South. |
block_cols |
integer; **optional** for "connected" experiment, how many
columns should the blocks be arranged into? |
block_rows |
integer; **optional** for "connected" experiment, how many
rows should the blocks be arranged into? |
An sf object containing the polygons for each plot in an experiment.
The CRS from clustered_sf
will be used as the CRS to draw the polygons,
therefore it is important that the CRS is in UTM.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.