Exploration of Spatio-Temporal Data
Overview
A set of statistical tools for spatio-temporal data exploration. Includes simple plotting functions, covariance calculations and computations similar to principal component analysis for spatio-temporal data. Can use both dataframes and stars objects for all plots and computations. For more details refer 'Spatio-Temporal Statistics with R' (Christopher K. Wikle, Andrew Zammit-Mangion, Noel Cressie, 2019, ISBN:9781138711136).
Install
Health
ERRORexamplesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Running examples in ‘stxplore-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: semivariogram
> ### Title: Computes the semi-variogram using a dataframe or a stars object.
> ### Aliases: semivariogram semivariogram.data.frame semivariogram.stars
> ### autoplot.semivariogramobj
>
> ### ** Examples
>
> # Dataframe example
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> data(locs)
> data(Times)
> data(Tmax)
> temp_part <- with(Times, paste(year, month, day, sep = "-"))
> temp_part <- data.frame(date = as.Date(temp_part)[913:923])
> Tmax <- Tmax[913:923, ]
> semidf <- semivariogram(locs,
+ temp_part,
+ Tmax,
+ latitude_linear = FALSE,
+ longitude_linear = FALSE,
+ missing_value = -9999,
+ width = 50,
+
...[truncated]...
n fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
> autoplot(semidf)
>
> # Stars example
> library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.15.0, GDAL 3.13.3, PROJ 9.9.0; sf_use_s2() is TRUE
> # Create a stars object from a data frame
> precip_df <- NOAA_df_1990[NOAA_df_1990$proc == 'Precip', ] %>%
+ filter(date >= "1992-02-01" & date <= "1992-02-05")
> precip <- precip_df[ ,c('lat', 'lon', 'date', 'z')]
> st_precip <- st_as_stars(precip, dims = c("lon", "lat", "date"))
> semist <- semivariogram(st_precip)
Error in semivariogram.data.frame(locations_df, latitude_linear = latitude_linear, :
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
Calls: semivariogram -> semivariogram.stars -> semivariogram.data.frame
Execution haltedr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Running examples in ‘stxplore-Ex.R’ failed
The error most likely occurred in:
> ### Name: semivariogram
> ### Title: Computes the semi-variogram using a dataframe or a stars object.
> ### Aliases: semivariogram semivariogram.data.frame semivariogram.stars
> ### autoplot.semivariogramobj
>
> ### ** Examples
>
> # Dataframe example
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> data(locs)
> data(Times)
> data(Tmax)
> temp_part <- with(Times, paste(year, month, day, sep = "-"))
> temp_part <- data.frame(date = as.Date(temp_part)[913:923])
> Tmax <- Tmax[913:923, ]
> semidf <- semivariogram(locs,
+ temp_part,
+ Tmax,
+ latitude_linear = FALSE,
+ longitude_linear = FALSE,
+ missing_value = -9999,
+ width = 50,
+ cutoff = 1000,
+ tlagmax = 7
+ )
Warning in
...[truncated]...
n fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
> autoplot(semidf)
>
> # Stars example
> library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.14.1, GDAL 3.12.4, PROJ 9.8.1; sf_use_s2() is TRUE
> # Create a stars object from a data frame
> precip_df <- NOAA_df_1990[NOAA_df_1990$proc == 'Precip', ] %>%
+ filter(date >= "1992-02-01" & date <= "1992-02-05")
> precip <- precip_df[ ,c('lat', 'lon', 'date', 'z')]
> st_precip <- st_as_stars(precip, dims = c("lon", "lat", "date"))
> semist <- semivariogram(st_precip)
Error in semivariogram.data.frame(locations_df, latitude_linear = latitude_linear, :
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
Calls: semivariogram -> semivariogram.stars -> semivariogram.data.frame
Execution haltedr-devel-windows-x86_64
Running examples in 'stxplore-Ex.R' failed
The error most likely occurred in:
> ### Name: semivariogram
> ### Title: Computes the semi-variogram using a dataframe or a stars object.
> ### Aliases: semivariogram semivariogram.data.frame semivariogram.stars
> ### autoplot.semivariogramobj
>
> ### ** Examples
>
> # Dataframe example
> library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
> data(locs)
> data(Times)
> data(Tmax)
> temp_part <- with(Times, paste(year, month, day, sep = "-"))
> temp_part <- data.frame(date = as.Date(temp_part)[913:923])
> Tmax <- Tmax[913:923, ]
> semidf <- semivariogram(locs,
+ temp_part,
+ Tmax,
+ latitude_linear = FALSE,
+ longitude_linear = FALSE,
+ missing_value = -9999,
+ width = 50,
+ cutoff = 1000,
+ tlagmax = 7
+ )
Warning in
...[truncated]...
n fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
Warning in `[.xts`(x@time, j) :
converting 'i' to integer because it appears to contain fractions
> autoplot(semidf)
>
> # Stars example
> library(stars)
Loading required package: abind
Loading required package: sf
Linking to GEOS 3.14.1, GDAL 3.12.1, PROJ 9.7.1; sf_use_s2() is TRUE
> # Create a stars object from a data frame
> precip_df <- NOAA_df_1990[NOAA_df_1990$proc == 'Precip', ] %>%
+ filter(date >= "1992-02-01" & date <= "1992-02-05")
> precip <- precip_df[ ,c('lat', 'lon', 'date', 'z')]
> st_precip <- st_as_stars(precip, dims = c("lon", "lat", "date"))
> semist <- semivariogram(st_precip)
Error in semivariogram.data.frame(locations_df, latitude_linear = latitude_linear, :
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
Calls: semivariogram -> semivariogram.stars -> semivariogram.data.frame
Execution haltedERRORre-building of vignette outputsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Error(s) in re-building vignettes:
...
--- re-building ‘stxplore.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘stxplore.Rmd’
--- re-building ‘stxplore_stars.Rmd’ using rmarkdown
Quitting from stxplore_stars.Rmd:155-158 [semivariogram1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `semivariogram.data.frame()`:
! The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
---
Backtrace:
▆
1. ├─stxplore::semivariogram(aerosol_region)
2. └─stxplore:::semivariogram.stars(aerosol_region)
3. └─stxplore:::semivariogram.data.frame(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'stxplore_stars.Rmd' failed with diagnostics:
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
--- failed re-building ‘stxplore_stars.Rmd’
SUMMARY: processing the following file failed:
‘stxplore_stars.Rmd’
Error: Vignette re-building failed.
Execution haltedr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Error(s) in re-building vignettes:
--- re-building ‘stxplore.Rmd’ using rmarkdown
[WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead.
--- finished re-building ‘stxplore.Rmd’
--- re-building ‘stxplore_stars.Rmd’ using rmarkdown
Quitting from stxplore_stars.Rmd:155-158 [semivariogram1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `semivariogram.data.frame()`:
! The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
---
Backtrace:
▆
1. ├─stxplore::semivariogram(aerosol_region)
2. └─stxplore:::semivariogram.stars(aerosol_region)
3. └─stxplore:::semivariogram.data.frame(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'stxplore_stars.Rmd' failed with diagnostics:
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
--- failed re-building ‘stxplore_stars.Rmd’
SUMMARY: processing the following file failed:
‘stxplore_stars.Rmd’
Error: Vignette re-building failed.
Execution haltedr-devel-windows-x86_64
Error(s) in re-building vignettes:
--- re-building 'stxplore.Rmd' using rmarkdown
--- finished re-building 'stxplore.Rmd'
--- re-building 'stxplore_stars.Rmd' using rmarkdown
Quitting from stxplore_stars.Rmd:155-158 [semivariogram1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `semivariogram.data.frame()`:
! The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
---
Backtrace:
▆
1. ├─stxplore::semivariogram(aerosol_region)
2. └─stxplore:::semivariogram.stars(aerosol_region)
3. └─stxplore:::semivariogram.data.frame(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'stxplore_stars.Rmd' failed with diagnostics:
The dataframe values_df needs to have T x N dimensions, T = number of times N = number of locations.
--- failed re-building 'stxplore_stars.Rmd'
SUMMARY: processing the following file failed:
'stxplore_stars.Rmd'
Error: Vignette re-building failed.
Execution halted- ERROR8 OK, 5 ERRORNow
- ERROR10 OK, 3 ERROR2026-10-05
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
Show 2 earlier changesHide 2 earlier changes
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 23 (3 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 85%
- Documented parameters
- 100%
- Return-value docs
- 92%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 343
Stars over time
Forks over time
PRs over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/sevvandi/stxplore on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2023-09-08 · The repository has a site deploy workflow
pkgdown site last built 2023-09-08
Dependencies
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.1.0Latest2023-02-03 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-02-03
- Total releases
- 1 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 1.7 MB / 9 files
- Download size
- 3.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("stxplore")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.