Package: CircSpaceTime 0.9.0

Mario Santoro

CircSpaceTime: Spatial and Spatio-Temporal Bayesian Model for Circular Data

Implementation of Bayesian models for spatial and spatio-temporal interpolation of circular data using Gaussian Wrapped and Gaussian Projected distributions. We developed the methods described in Jona Lasinio G. et al. (2012) <doi:10.1214/12-aoas576>, Wang F. et al. (2014) <doi:10.1080/01621459.2014.934454> and Mastrantonio G. et al. (2016) <doi:10.1007/s11749-015-0458-y>.

Authors:Giovanna Jona Lasinio [aut], Gianluca Mastrantonio [aut], Mario Santoro [aut, cre]

CircSpaceTime_0.9.0.tar.gz
CircSpaceTime_0.9.0.tar.gz(r-4.5-noble)CircSpaceTime_0.9.0.tar.gz(r-4.4-noble)
CircSpaceTime_0.9.0.tgz(r-4.4-emscripten)CircSpaceTime_0.9.0.tgz(r-4.3-emscripten)
CircSpaceTime.pdf |CircSpaceTime.html
CircSpaceTime/json (API)

# Install 'CircSpaceTime' in R:
install.packages('CircSpaceTime', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/santoroma/circspacetime/issues0 issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

openblascppopenmp

1.70 score 1 stars 180 downloads 12 exports 35 dependencies

Last updated 6 years agofrom:a59eecad65. Checks:1 OK, 2 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 25 2025
R-4.5-linux-x86_64NOTEMar 25 2025
R-4.4-linux-x86_64NOTEMar 25 2025

Exports:APEcircConvCheckCRPScircProjKrigSpProjKrigSpTiProjSpProjSpTirose_diagWrapKrigSpWrapKrigSpTiWrapSpWrapSpTi

Dependencies:bootcircularclicodacolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellmvtnormnlmepillarpkgconfigR6RColorBrewerRcppRcppArmadilloRInsiderlangscalestibbleutf8vctrsviridisLitewithr

Citation

To cite package ‘CircSpaceTime’ in publications use:

Jona Lasinio G, Mastrantonio G, Santoro M (2019). CircSpaceTime: Spatial and Spatio-Temporal Bayesian Model for Circular Data. R package version 0.9.0, https://CRAN.R-project.org/package=CircSpaceTime.

Corresponding BibTeX entry:

  @Manual{,
    title = {CircSpaceTime: Spatial and Spatio-Temporal Bayesian Model
      for Circular Data},
    author = {Giovanna {Jona Lasinio} and Gianluca Mastrantonio and
      Mario Santoro},
    year = {2019},
    note = {R package version 0.9.0},
    url = {https://CRAN.R-project.org/package=CircSpaceTime},
  }

Readme and manuals

CircSpaceTime

Spatial and Spatio-Temporal Bayesian Model for Circular Data

Implementation of Bayesian models for spatial and spatio-temporal interpolation of circular data using Gaussian Wrapped and Gaussian Projected distributions.

Currently the following models are implemented:
Spatial Wrapped Normal
Spatial Projected Normal
Spatio-Temporal Wrapped Normal
Spatio-Temporal Projected Normal

Installation

From source

If you are linux/linux-like users or simply you want to compile from source the best way is to use "devtools"

devtools_installed <- require(devtools)
 if (!devtools_installed){
   install.packages("devtools", dep = TRUE)
    library(devtools)
    }
  install_github("santoroma/CircSpaceTime")  

Dependencies: Rcpp, RcppArmadillo, circular, ggplot2, coda
Suggested: foreach, parallel, iterators, doParallel, knitr, rmarkdown, gridExtra

From CRAN

The package is in submission on CRAN.

  install.packages("CircSpaceTime", dep = TRUE)

Using the package

library(CircSpaceTime)

For further information on the package you can read the help or take a look at the vignette

Issues

Please help us to improve the package!
For any issue/error/"what is this?" report the best way is to visit the issues page and:

  1. Find if already exist a similar issue, read it and if the case write a precise comment with reproducible example.
  2. If not, open a new one writing a precise comment with reproducible example.

Thanks

Mario, Gianluca and Giovanna

Help Manual

Help pageTopics
Average Prediction Error for circular Variables.APEcirc
April waves.april
CircSpaceTime: implementation of Bayesian models, for spatial and spatio-temporal interpolation of circular data.CircSpaceTime-package CircSpaceTime
Testing Convergence of mcmc using package codaConvCheck
The Continuous Ranked Probability Score for Circular Variables.CRPScirc
May waves.may
Kriging using projected normal model.ProjKrigSp
#' Spatio temporal interpolation using projected spatial temporal normal model.ProjKrigSpTi
Samples from the Projected Normal spatial modelProjSp
Samples from the posterior distribution of the Projected Normal spatial modelProjSpTi
Rose diagram in ggplot2 inspired from rose.diag in package circular.rose_diag
Spatial interpolation using wrapped normal model.WrapKrigSp
Prediction using wrapped normal spatio-temporal model.WrapKrigSpTi
Samples from the Wrapped Normal spatial modelWrapSp
Samples from the posterior distribution of the Wrapped Normal spatial temporal modelWrapSpTi