inst/shiny/modules/plot_scatter.md

Module: Plot scatterplot

BACKGROUND

This module plots a sample of the values of the raster image as a scatterplot against either latitude or longitude.

IMPLEMENTATION

The raster image is passed to plot_scatter() which extracts a sample of values using terra::spatSample(method='random) and returns them to be plotted with plot(). The number of points sampled and whether the data is plotted against latitude or longitude can be selected by the user.



Try the shinyscholar package in your browser

Any scripts or data that you put into this service are public.

shinyscholar documentation built on Sept. 9, 2025, 5:52 p.m.