Create and interact with spatial thinning results stored in a GeoThinned object.
as_GeoThinned(retained, method, params = list(), original_data = NULL)new_GeoThinned(retained, method, params = list(), original_data = NULL)
# S3 method for GeoThinned
print(x, ...)
# S3 method for GeoThinned
summary(object, trial = NULL, ...)
# S3 method for summary.GeoThinned
print(x, ...)
# S3 method for GeoThinned
plot(
x,
trial = NULL,
show_original = TRUE,
col_original = "#EB714B",
col_thinned = "#5183B3",
pch_original = 1,
pch_thinned = 16,
main = NULL,
...
)
largest(x, ...)
# S3 method for GeoThinned
largest(x, ...)
largest_index(x, ...)
# S3 method for GeoThinned
largest_index(x, ...)
get_trial(x, trial = NULL, ...)
# S3 method for GeoThinned
get_trial(x, trial = NULL, ...)
as_sf(x, ...)
# S3 method for GeoThinned
as_sf(x, trial = NULL, crs = 4326, ...)
A GeoThinned object or associated results (summary, plot, trial subset).
When `thin_points()` is run with `all_trials = FALSE`, the returned object contains only the largest trial; therefore all methods refer to this single subset.
A list of logical vectors indicating retained points per trial.
The thinning method used (e.g., "distance", "grid", "precision").
A list of parameters used in thinning.
The original unmodified data.
An object of class GeoThinned.
Additional arguments (ignored).
An object of class GeoThinned.
Integer index of the thinning trial to extract (for summary(), get_trial(), plot(), as_sf()). Default `NULL`, which will return the largest dataset.
Logical, whether to show original points.
Colors for original points.
Colors for thinned points.
Point shapes for original points.
Point shapes for thinned points.
Title of the plot.
Coordinate reference system to assign to the resulting sf object (optional).
thin_points