When keepOutliers = FALSE
, random sampling is used to provide
a statistically relevant subsample of the data.
When keepOutliers = TRUE
, a customized sampling algorithm is used that
attempts to create subsets for use in plotting that create plots that are
visually identical to plots using all data. This is accomplished by
preserving outliers and only sampling data in regions where overplotting
is expected.
The process is as follows:
find outliers using seismicRoll::findOutliers()
create a subset consisting of only outliers
sample the remaining data
merge the outliers and sampled data