Description Usage Arguments Value
View source: R/crown_inspector.R
For a given set of SpatialPoints, and a set of images and associated .shp file of delineated crowns, plot the crown delineated around each of the spatial points in each of the images.
1 2 | crown_inspector(spatial_points, image_fnames, RGBseqs, crown_fnames, outp_dir,
overwrite = T)
|
spatial_points |
A SpatialPoints object |
image_fnames |
Filenames of images |
RGBseqs |
A 3 row matrix that indicates for each image which band nummers to display as red, green, and blue, respectively. It should have as many columns as image_fnames is long. |
crown_fnames |
Filenames of the vector (e.g. crown polygon) shapefiles associated with each of the images in image_fnames. The shapefiles must have the attributes primalX and primalY, which refer to the coordinates of the centers of the crowns in a reference image |
outp_dir |
Character. Directory where plots for each crown are stored |
overwrite |
Logical. Should the outp_dir be emptied prior to plotting? Default is T. Setting it to F can be handy when the code needs to be rerun after an unexpected interruption. |
A set of jpeg files of crowns plotted on top of their respective images.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.