This function is called by the plot_hist module and extracts values from a raster image.

plot_hist(ras, bins)

Arguments

ras

SpatRaster object

bins

The number of breaks in the histogram

Value

a vector of values extracted from the raster

Author

Simon Smart simon.smart@cantab.net