Description Usage Arguments Value Examples
Helper to assign block numbers to data according to variables and limits
1 2 | assign_blocks(data, variable_1, variable_2, n_cols, n_rows = NULL,
xlb, ylb = NULL, block_type = "equal_area")
|
data |
matrix or data.frame that contains at least four columns: "Longitude" and "Latitude" to represent geographic position, and two other columns to represent the variables of the 2D environmental space. |
variable_1 |
(character or numeric) name or position of the first variable (x-axis) to be used to create blocks. |
variable_2 |
(character or numeric) name or position of the second variable (y-axis) to be used to create blocks (must be different from the first one). |
n_cols |
(numeric) number of columns of a grid used to create blocks and split the bi-dimensional space. |
n_rows |
(numeric) number of rows of a grid used to create blocks and
split the bi-dimensional space. If NULL, the default, |
xlb |
(numeric) vector of values of extremes for all blocks considering
|
ylb |
(numeric) vector of values of extremes for all blocks considering
|
block_type |
(character) type of blocks to be used for dividing the bi-dimensional space. Two options are available: "equal_area" and "equal_points". Default = "equal_area". Note that this option has important association regarding full representation of the extreme values of environmental variables across the study region. |
Original element defined in data
plus a new column named "Block"
defining the block that correspond to each of the points represented in rows.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.