{"id":27238010,"url":"https://github.com/tobiste/tectonicr","last_synced_at":"2025-04-10T18:59:45.937Z","repository":{"id":45753804,"uuid":"443426588","full_name":"tobiste/tectonicr","owner":"tobiste","description":"Toolset to model and analyse tectonic stress fields with R","archived":false,"fork":false,"pushed_at":"2025-04-09T14:47:38.000Z","size":112167,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T15:44:07.377Z","etag":null,"topics":["geology","r","structural-geology","tectonics"],"latest_commit_sha":null,"homepage":"https://tobiste.github.io/tectonicr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobiste.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-31T21:17:07.000Z","updated_at":"2025-04-09T14:41:01.000Z","dependencies_parsed_at":"2024-02-28T15:46:25.081Z","dependency_job_id":"3c8e0ae1-8731-4f64-bea8-e4cc9137bc37","html_url":"https://github.com/tobiste/tectonicr","commit_stats":{"total_commits":499,"total_committers":4,"mean_commits":124.75,"dds":"0.43887775551102204","last_synced_commit":"2b59da13bf00ec055a29301bdb42c3be3fe340f2"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2Ftectonicr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2Ftectonicr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2Ftectonicr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobiste%2Ftectonicr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobiste","download_url":"https://codeload.github.com/tobiste/tectonicr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065274,"owners_count":21041870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geology","r","structural-geology","tectonics"],"created_at":"2025-04-10T18:59:45.281Z","updated_at":"2025-04-10T18:59:45.929Z","avatar_url":"https://github.com/tobiste.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tectonicr \u003ca href=\"https://cran.r-project.org/package=tectonicr/\"\u003e\u003cimg src=\"man/figures/logo.png\" alt=\"tectonicr website\" align=\"right\" height=\"104\"/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/tectonicr)](https://CRAN.R-project.org/package=tectonicr)\n[![](https://img.shields.io/badge/devel%20version-0.4.9.9004-orange.svg)](https://github.com/tobiste/tectonicr)\n[![](http://cranlogs.r-pkg.org/badges/grand-total/tectonicr?color=yellow)](https://cran.r-project.org/package=tectonicr)\n[![R-CMD-check](https://github.com/tobiste/tectonicr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tobiste/tectonicr/actions/workflows/R-CMD-check.yaml)\n[![codecov](https://codecov.io/gh/tobiste/tectonicr/graph/badge.svg?token=bY7i7QHdix)](https://codecov.io/gh/tobiste/tectonicr)\n[![DOI](https://img.shields.io/badge/doi-10.32614/CRAN.package.tectonicr-slategrey.svg)](https://doi.org/10.32614/CRAN.package.tectonicr)\n[![License: GPLv3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n\u003c!-- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11199557.svg)](https://doi.org/10.5281/zenodo.11199557) --\u003e\n\n\u003c!-- badges: end --\u003e\n\n`tectonicr` is a free and open-source **R** package for modeling and\nanalyzing the direction of the maximum horizontal stress (SHmax) based\non the empirical link between the direction of intraplate stress and the\ndirection of the relative motion of neighboring plates (Wdowinski, 1998;\nStephan et al., 2023). The following methods are available:\n\n-   **Direction of the plate boundary forces**: `PoR_shmax()` gives the\n    predicted stress field adjacent to a plate boundary, calculated\n    using the relative plate motion of the neighboring plates using the\n    function `model_shmax()`. The goodness-of-fit can be statistically\n    tested by e.g. `norm_chisq()`, `circular_dispersion()`\n    ,`rayleigh_test()`, and `confidence_interval()`.\n-   **Distance to plate boundary**: `distance_from_pb()` gives the\n    distance between the stress data point and the plate boundary\n    measured along the stress trajectories.\n-   **Trajectories of the theoretical stress field** `eulerpole_paths()`\n    generates an `sf` object containing spatial information that is\n    suitable to plot with, for instance, `ggplot()`.\n-   **Relative rotations from a given set of plate motion parameters**:\n    `equivalent_rotation()` transfers a set of plate motion parameters\n    into the relative plate motions among the given plates.\n-   **Average direction and variance of a set of SHmax data** using\n    (weighted) statistics and other parameters to statistically estimate\n    the distribution parameters of pi-directional data.\n-   **Spatial interpolation of of SHmax**: `PoR_stress2grid()` uses\n    distance, method, and quality-weighted mean direction of stress data\n    without being affected by angular distortions.\n-   **Rose plot** `rose()` shows the frequencies of the orientations in\n    polar coordinates\n-   **Stress anomaly map**: spatial distribution of the dispersion of\n    the observed stress field from the directions of plate boundary\n    forces\n-   **Download and filter world stress map data** using\n    `download_WSM2016()`\n\n## Prerequisites\n\nYou must have R installed on your system (see \u003chttps://www.r-project.org/\u003e).\nTo install `tectonicr` from CRAN, type the following code at the R\ncommand line prompt:\n\n```         \ninstall.packages(\"tectonicr\")\n```\n\n## Installation\n\nThe most recent development version of `tectonicr` is available from\nGithub and can be installed on your system as follows:\n\n```         \n# install.packages(\"remotes\") # install if needed\nremotes::install_github('tobiste/tectonicr')\nlibrary('tectonicr')\n```\n\nUsing the stress measurements from the San Andreas Fault - Gulf of\nCalifornia example, a quick analysis and test against the right-lateral\ntransform plate boundary can be achieved by:\n\n```         \n# load example data\ndata(san_andreas)\ndata(nuvel1)\ndata(plates)\n\nstress_analysis(\nsan_andreas, \nPoR = equivalent_rotation(nuvel1, \"na\", \"pa\"), \ntype = \"right\", \npb = subset(plates, pair == \"na-pa\")\n)\n```\n\nThe code produces the underlying results for Fig. 7 from Stephan et al.\n(2023)\n\n\u003cimg src=\"man/figures/Figure_07_san_andreas_data_low.jpg\" width=\"864\"/\u003e\n\n## Documentation\n\nThe detailed documentation can be found at\n\u003chttps://tobiste.github.io/tectonicr/articles/A_tectonicr.html\u003e\n\n## GUI\n\nThere is a graphical user interface that provides some (limited)\n`tectonicr` functionalities. No need to install, just click on the link\nand you can run `tectonicr` on your browser:\n\n\u003chttps://tobiste.shinyapps.io/tectonicr-app/\u003e\n\n## Author\n\nTobias Stephan\n([tstephan\\@lakeheadu.ca](mailto:tstephan@lakeheadu.ca))\n\n## Feedback, issues, and contributions\n\nI welcome feedback, suggestions, issues, and contributions! If you have\nfound a bug, please file it\n[here](https://github.com/tobiste/tectonicr/issues) with minimal code to\nreproduce the issue.\n\n## How to cite tectonicr\n\nWhen referencing this package, please cite\n\nStephan, T., Enkelmann, E., and Kroner, U. (2023). Analyzing the\nhorizontal orientation of the crustal stress adjacent to plate\nboundaries. *Scientific Reports*, *13*(1). DOI:\n[10.1038/s41598-023-42433-2](https://doi.org/10.1038/s41598-023-42433-2).\n\nand the package DOI:\n[10.32614/CRAN.package.tectonicr](https://doi.org/10.32614/CRAN.package.tectonicr).\n\n## License\n\nGPL-3.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobiste%2Ftectonicr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobiste%2Ftectonicr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobiste%2Ftectonicr/lists"}