fieldshape
fileThe user should select the four experimental field corners and the shape file with plots will be automatcly
built using a grid with the number of ranges and rows. Attention: The base of image should be parallel to axis X,
please use first the function fieldRotate
.
fieldShape(
mosaic,
ncols = 10,
nrows = 10,
nPoint = 4,
fieldMap = NULL,
fieldData = NULL,
ID = NULL,
theta = NULL,
plot = TRUE,
fast.plot = FALSE
)
object of class stack obtained from function fieldRotate
with the base of image parallel to axis X.
number of ranges.
number of rows.
number of points necessary to select field boundaries or area to remove (4 >= nPoint <= 50).
matrix with plots ID identified by rows and ranges, please use first the funsction fieldMap
.
data frame with plot ID and all attributes of each plot (Traits as columns and genotypes as rows).
name of plot ID in the fieldData file to combine with fieldShape.
angle of rotation used on function fieldRotate
. It is an important step to fit the fieldShape on the original image.
if is TRUE the crop image and fieldShape will be plotted.
if TRUE only the grey scale image will be plotted as reference (faster approach).
A list with two element
mosaic
new mosaic cropped with the drew fieldshape
.
fieldShape
The function returns the fieldShape
format
SpatialPolygonsDataFrame
with plots numbered from left to right and top to bottom,
and a new reduced image with format stack. The fieldMap
can be used to identify the plot ID.
fieldShape