plot_samples.Rd
Given a shapefile of sampling boxes, and a path to a directory of 4-band ortho-imagery
prints rgb and/or ndvi plots of the sampling area with numbered boxes superimposed.
While the function prints both rgb and ndvi by default, the user can turn either off
by setting either the rgb
or ndvi
arguments to FALSE
.
plot_samples(in_path, out_path, samples = samples, print_rgb = TRUE, print_ndvi = TRUE)
in_path | is a character vector containing the path to the orthoimagery |
---|---|
out_path | is a character vector specifying the output directory for the plots |
samples | is a SpatialPolygonsDataFrame object (the sample boxes shapefile) |
rgb | is a logical indicator, prints rgb plots if true |
ndvi | is a logical indicator, prints ndvi plots if true |
prints an rgb and/or ndvi plot into the out_path
directory