Can anyone suggest a QGIS/R approach to sample from a polygon n points that satisfy some conditions depending on underlying raster layers values?
E.g. I have a country polygon and I would like to sample 10 points such that for those points the population density (density_raster) is >100 and altitude (altitude_raster) is <1000.