This function is called by the plot_scatter module and samples values from a raster

plot_scatter(ras, sample, axis)

Arguments

ras

SpatRaster object. Image to be analysed

sample

numeric. Number of points to sample

axis

character.

Value

a dataframe containing the axis values and the cell values

Author

Simon Smart simon.smart@cantab.net