plot.geo_distances | R Documentation |
Make a kernel density plot of samples distances.
## S3 method for class 'geo_distances'
plot(x, y, ...)
x |
Object of class "geo_distances". |
y |
Ignored. |
... |
Further specifications for plot. |
A plot showing the sample-to-sample distances and sample-to-prediction distances.
Please refer to the sits documentation available in <https://e-sensing.github.io/sitsbook/> for detailed examples.
Felipe Souza, lipecaso@gmail.com
Rolf Simoes, rolf.simoes@inpe.br
Alber Sanchez, alber.ipia@inpe.br
Hanna Meyer and Edzer Pebesma, "Machine learning-based global maps of ecological variables and the challenge of assessing them" Nature Communications, 13,2022. DOI: 10.1038/s41467-022-29838-9.
if (sits_run_examples()) {
# read a shapefile for the state of Mato Grosso, Brazil
mt_shp <- system.file("extdata/shapefiles/mato_grosso/mt.shp",
package = "sits"
)
# convert to an sf object
mt_sf <- sf::read_sf(mt_shp)
# calculate sample-to-sample and sample-to-prediction distances
distances <- sits_geo_dist(samples_modis_ndvi, mt_sf)
# plot sample-to-sample and sample-to-prediction distances
plot(distances)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.