tectonicr
Toolset to model and analyse tectonic stress fields with R
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 12 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.6%) to scientific vocabulary
Keywords
Repository
Toolset to model and analyse tectonic stress fields with R
Basic Info
- Host: GitHub
- Owner: tobiste
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://tobiste.github.io/tectonicr/
- Size: 121 MB
Statistics
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 13
Topics
Metadata Files
README.md
tectonicr 
tectonicr is a free and open-source R package for modeling and
analyzing the direction of the maximum horizontal stress (SHmax) based
on the empirical link between the direction of intraplate stress and the
direction of the relative motion of neighboring plates (Wdowinski, 1998;
Stephan et al., 2023). The following methods are available:
- Direction of the plate boundary forces:
PoR_shmax()gives the predicted stress field adjacent to a plate boundary, calculated using the relative plate motion of the neighboring plates using the functionmodel_shmax(). The goodness-of-fit can be statistically tested by e.g.norm_chisq(),circular_dispersion(),rayleigh_test(), andconfidence_interval(). - Distance to plate boundary:
distance_from_pb()gives the distance between the stress data point and the plate boundary measured along the stress trajectories. - Trajectories of the theoretical stress field
eulerpole_paths()generates ansfobject containing spatial information that is suitable to plot with, for instance,ggplot(). - Azimuth plotting using
geom_azimuth()orgeom_azimuthpoint()in ggplot. - Relative rotations from a given set of plate motion parameters:
equivalent_rotation()transfers a set of plate motion parameters into the relative plate motions among the given plates. - Average direction and variance of a set of SHmax data using (weighted) statistics and other parameters to statistically estimate the distribution parameters of pi-directional data.
- Spatial interpolation of of SHmax:
PoR_stress2grid()uses distance, method, and quality-weighted mean direction of stress data without being affected by angular distortions. - Rose plot
rose()shows the frequencies of the orientations in polar coordinates - Stress anomaly map: spatial distribution of the dispersion of
the observed stress field from the directions of plate boundary
forces with
kernel_dispersion() - Download and filter world stress map data using
download_WSM()
Prerequisites
You must have R installed on your system (see https://www.r-project.org/).
To install tectonicr from CRAN, type the following code at the R
command line prompt:
install.packages("tectonicr")
Installation
The most recent development version of tectonicr is available from
Github and can be installed on your system as follows:
```
install.packages("remotes") # install if needed
remotes::install_github('tobiste/tectonicr') library('tectonicr') ```
Using the stress measurements from the San Andreas Fault - Gulf of California example, a quick analysis and test against the right-lateral transform plate boundary can be achieved by:
```
load example data
data(san_andreas) data(nuvel1) data(plates)
stressanalysis( sanandreas, PoR = equivalent_rotation(nuvel1, "na", "pa"), type = "right", pb = subset(plates, pair == "na-pa") ) ```
The code produces the underlying results for Fig. 7 from Stephan et al. (2023)

Documentation
The detailed documentation can be found at https://tobiste.github.io/tectonicr/articles/A_tectonicr.html
GUI
There is a graphical user interface that provides some (limited)
tectonicr functionalities. No need to install, just click on the link
and you can run tectonicr on your browser:
https://tobiste.shinyapps.io/tectonicr-app/
Author
Tobias Stephan (tstephan\@lakeheadu.ca)
Feedback, issues, and contributions
I welcome feedback, suggestions, issues, and contributions! If you have found a bug, please file it here with minimal code to reproduce the issue.
How to cite tectonicr
When referencing this package, please cite
Stephan, T., Enkelmann, E., and Kroner, U. (2023). Analyzing the horizontal orientation of the crustal stress adjacent to plate boundaries. Scientific Reports, 13(1). DOI: 10.1038/s41598-023-42433-2.
and the package DOI: 10.32614/CRAN.package.tectonicr.
License
GPL-3.0 License
Owner
- Name: Tobias Stephan
- Login: tobiste
- Kind: user
- Location: Thunder Bay, ON
- Company: Lakehead University
- Website: https://tobiasstephan1.wixsite.com/tobi
- Twitter: derterle
- Repositories: 2
- Profile: https://github.com/tobiste
GitHub Events
Total
- Release event: 4
- Watch event: 3
- Push event: 136
- Create event: 3
Last Year
- Release event: 4
- Watch event: 3
- Push event: 136
- Create event: 3
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Tobias Stephan | t****e@g****m | 280 |
| Tobias Stephan | 7****e | 150 |
| Tobias Stephan | t****n@u****a | 39 |
| Tobias Stephan | t****1@y****m | 30 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: about 1 year
- Average time to close pull requests: about 6 hours
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 2.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tobiste (1)
Pull Request Authors
- rubak (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 489 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 9
- Total maintainers: 1
cran.r-project.org: tectonicr
Analyzing the Orientation of Maximum Horizontal Stress
- Homepage: https://tobiste.github.io/tectonicr/
- Documentation: http://cran.r-project.org/web/packages/tectonicr/tectonicr.pdf
- License: GPL (≥ 3)
-
Latest release: 0.4.7
published 9 months ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.5.0 depends
- dplyr * imports
- ggplot2 * imports
- magrittr * imports
- methods * imports
- sf >= 1.0.0 imports
- smoothr * imports
- spatstat.core * imports
- terra >= 1.5.0 imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
- actions/checkout v2 composite
- r-lib/actions/check-r-package v1 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite