Learn R Programming

remotePARTS

remotePARTS is an R package that contains tools for analyzing spatiotemporal data, typically obtained via remote sensing.

Description

These tools were created to test map-scale hypotheses about trends in large remotely sensed data sets but any data with spatial and temporal variation can be analyzed. Tests are conducted using the PARTS method for analyzing spatially autocorrelated time series (Ives et al., 2021). The method’s unique approach can handle extremely large data sets that other spatiotemporal models cannot, while still appropriately accounting for spatial and temporal autocorrelation. This is done by partitioning the data into smaller chunks, analyzing chunks separately and then combining the separate analyses into a single, correlated test of the map-scale hypotheses.

Instalation

To install the package and it’s dependencies, use the following R code:

install.packages("remotePARTS")

To install the latest development version of this package from github, use

install.packages("devtools") # ensure you have the latest devtools
devtools::install_github("morrowcj/remotePARTS")

Then, upon successful installation, load the package with library(remotePARTS).

The latest version of Rtools is required for Windows and C++11 is required for other systems.

Example usage

For examples on how to use remotePARTS, see the Alaska vignette:

vignette("Alaska")

Note that the vignette needs to be built when installing with and may require the build_vignettes = TRUE argument when installing with install_github().

If you’re having trouble installing or building the package, you may need to double check that the R build tools are properly installed on your machine: official Rstudio development prerequisites](https://support.posit.co/hc/en-us/articles/200486498-Package-Development-Prerequisites) To do this, use pkgbuild::has_build_tools(debug = TRUE) and pkgbuild::check_build_tools(debug = TRUE) to unsure that your build tools are up to date.

The vignette is also available online: https://morrowcj.github.io/remotePARTS/Alaska.html.

Bugs and feature requests

If you find any bugs, have a feature or improvement to suggest, or any other feedback about the remotePARTS package, please submit a GitHub Issue here. We really appreciate any and all feedback.

References

Ives, Anthony R., et al. “Statistical inference for trends in spatiotemporal data.” Remote Sensing of Environment 266 (2021): 112678. https://doi.org/10.1016/j.rse.2021.112678

Copy Link

Version

Install

install.packages('remotePARTS')

Monthly Downloads

246

Version

1.0.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Clay Morrow

Last Published

September 15th, 2023

Functions in remotePARTS (1.0.4)

fitGLS_opt_FUN

Function that fitGLS_opt optimizes over
optimize_nugget

Find the maximum likelihood estimate of the nugget
invert_chol

Invert the cholesky decomposition of V
max_dist

calculate maximum distance among a table of coordinates
fitGLS_opt

Fit a PARTS GLS model, with maximum likelihood spatial parameters
fitCLS

CLS for time series
fitCor

Estimate spatial parameters from time series residuals
ndvi_AK10000

NDVI remote sensing data for 10,000 random pixels from Alaska, with rare land classes removed.
fitCLS_map

Map-level CLS for time series
fitGLS

Fit a PARTS GLS model.
print.partGLS

S3 print method for "partGLS" objects
part_ttest

Correlated t-test for paritioned GLS
part_chisqr

Chisqr test for partitioned GLS
remoteGLS

remoteGLS constructor (S3)
print.remoteCor

S3 print method for "remoteCor" class
print.remoteGLS

print method for remoteGLS
partGLS_ndviAK

partitioned GLS results
MC_GLSpart

fit a parallel partitioned GLS
remotePARTS-package

remotePARTS: Spatiotemporal Autoregression Analyses for Large Data Sets
sample_partitions

Randomly sample a partition matrix for partitioned GLS
t.test.partGLS

Conduct a t-test of "partGLS" object
test_covar_fun

Test passing a covariance function and arguments
fitAR_map

Map-level AR REML
chisqr.partGLS

Conduct a chisqr test of "partGLS" object
crosspart_GLS

Calculate cross-partition statistics in a partitioned GLS
chisqr

Conduct a chi-squared test
distm_km

Calculate a distance matrix from coordinates
covar_taper

Tapered-spherical distance-based covariance function
print.remoteTS

S3 print method for remoteTS class
calc_dfpart

calculate degrees of freedom for partitioned GLS
fitAR

AR regressions by REML
check_posdef

Check if a matrix is positive definite