Science Score: 26.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
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (19.9%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: phuongquan
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: https://phuongquan.github.io/mantis/
- Size: 11.9 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
- Releases: 0
Created almost 3 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Changelog
Contributing
License
Codemeta
README.Rmd
---
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# mantis
[](https://github.com/phuongquan/mantis/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/phuongquan/mantis)
[](https://www.repostatus.org/#active)
[](https://github.com/ropensci/software-review/issues/710)
The `mantis` package generates interactive reports that enable quick visual
review of multiple related time series. This can help with identification of
temporal artefacts and unexpected trends. The choice of visualisations include
interactive plots with adjustable axes and tooltips showing the individual dates
and values, as well as static heatmap and scatter plots for more lightweight
applications. E.g.

The resulting html reports are self-contained and shareable without a web server.
`mantis` is designed for use on data that is essentially a collection of time
series in a data frame, where you have already decided which values you are
interested in reviewing. If you want to check more generally for temporal
changes in record-level, non-numeric data, then check out our sister package
['daiquiri'](https://ropensci.github.io/daiquiri/index.html).
## Why should I use it?
We anticipate two main target users:
1. Researchers who analyse data from large, temporal datasets, particularly
routinely-collected data such as electronic health records. Included as part of
the initial analysis stage, it will help you to check for any temporal biases in
your datasets before embarking on your main analyses, therefore improving the
reliability of your study.
2. Managers of live data feeds that are used as a data source for downstream
analyses. Regular inspection of data that is frequently updated will help to
identify any issues early and enable a timely response to rectify issues such as
missing data. While a set of validation checks in a data pipeline could also
work in this circumstance, the benefit of this package is the ability to check
for temporal anomalies that are obvious to the human eye but that are difficult
to capture programmatically.
## Installation
```{r, eval = FALSE}
# install from CRAN
install.packages("mantis")
# or install the latest github release
# install dependencies first
install.packages(c(
"remotes",
"rmarkdown",
"knitr",
"reactable",
"dplyr",
"tidyr",
"dygraphs",
"xts",
"ggplot2",
"scales",
"purrr",
"htmltools"
))
remotes::install_github("phuongquan/mantis@v0.4.3", dependencies = FALSE)
# or install the current development version
remotes::install_github("phuongquan/mantis", dependencies = FALSE)
```
## Usage
```{r}
library(mantis)
# this example data frame contains numbers of antibiotic prescriptions
# in long format
data("example_prescription_numbers")
head(example_prescription_numbers)
```
```{r, eval = FALSE}
# create a report in the working directory, with one tab per Location
mantis_report(
df = example_prescription_numbers,
file = "example_prescription_numbers_report.html",
inputspec = inputspec(
timepoint_col = "PrescriptionDate",
item_cols = c("Location", "Antibiotic", "Spectrum"),
value_col = "NumberOfPrescriptions",
tab_col = "Location",
timepoint_unit = "day"
)
)
```
Example reports and more detailed guidance can be found in the [package website](https://phuongquan.github.io/mantis/index.html).
## Acknowledgements
This work was supported by the National Institute for Health Research Health
Protection Research Unit (NIHR HPRU) in Healthcare Associated Infections and
Antimicrobial Resistance at the University of Oxford in partnership with the UK
Health Security Agency (UKHSA) (NIHR200915), and by the NIHR Oxford Biomedical
Research Centre.
## Contributing to this package
Please report any bugs or suggestions by opening a [github
issue](https://github.com/phuongquan/mantis/issues).
Owner
- Name: Phuong Quan
- Login: phuongquan
- Kind: user
- Location: Oxford, UK
- Company: University of Oxford
- Repositories: 1
- Profile: https://github.com/phuongquan
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "mantis",
"description": "Generate interactive html reports that enable quick visual review of multiple related time series stored in a data frame. For static datasets, this can help to identify any temporal artefacts that may affect the validity of subsequent analyses. For live data feeds, regularly scheduled reports can help to pro-actively identify data feed problems or unexpected trends that may require action. The reports are self-contained and shareable without a web server. ",
"name": "mantis: Multiple Time Series Scanner",
"relatedLink": "https://phuongquan.github.io/mantis/",
"codeRepository": "https://github.com/phuongquan/mantis",
"issueTracker": "https://github.com/phuongquan/mantis/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.0.9000",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.2 (2024-10-31 ucrt)",
"author": [
{
"@type": "Person",
"givenName": [
"T.",
"Phuong"
],
"familyName": "Quan",
"email": "phuong.quan@ndm.ox.ac.uk",
"@id": "https://orcid.org/0000-0001-8566-1817"
}
],
"copyrightHolder": [
{
"@type": "Organization",
"name": "University of Oxford"
}
],
"funder": [
{
"@type": "Organization",
"name": "National Institute for Health Research (NIHR)"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": [
"T.",
"Phuong"
],
"familyName": "Quan",
"email": "phuong.quan@ndm.ox.ac.uk",
"@id": "https://orcid.org/0000-0001-8566-1817"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "covr",
"name": "covr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=covr"
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"version": ">= 3.0.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 4.1.0"
},
"2": {
"@type": "SoftwareApplication",
"identifier": "rmarkdown",
"name": "rmarkdown",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
},
"3": {
"@type": "SoftwareApplication",
"identifier": "knitr",
"name": "knitr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=knitr"
},
"4": {
"@type": "SoftwareApplication",
"identifier": "reactable",
"name": "reactable",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=reactable"
},
"5": {
"@type": "SoftwareApplication",
"identifier": "dplyr",
"name": "dplyr",
"version": ">= 1.1.1",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=dplyr"
},
"6": {
"@type": "SoftwareApplication",
"identifier": "tidyr",
"name": "tidyr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=tidyr"
},
"7": {
"@type": "SoftwareApplication",
"identifier": "dygraphs",
"name": "dygraphs",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=dygraphs"
},
"8": {
"@type": "SoftwareApplication",
"identifier": "xts",
"name": "xts",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=xts"
},
"9": {
"@type": "SoftwareApplication",
"identifier": "ggplot2",
"name": "ggplot2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=ggplot2"
},
"10": {
"@type": "SoftwareApplication",
"identifier": "scales",
"name": "scales",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=scales"
},
"11": {
"@type": "SoftwareApplication",
"identifier": "purrr",
"name": "purrr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=purrr"
},
"12": {
"@type": "SoftwareApplication",
"identifier": "htmltools",
"name": "htmltools",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=htmltools"
},
"SystemRequirements": null
},
"fileSize": "2622.558KB",
"releaseNotes": "https://github.com/phuongquan/mantis/blob/master/NEWS.md",
"readme": "https://github.com/phuongquan/mantis/blob/main/README.md",
"contIntegration": [
"https://github.com/phuongquan/mantis/actions/workflows/R-CMD-check.yaml",
"https://app.codecov.io/gh/phuongquan/mantis"
],
"developmentStatus": "https://www.repostatus.org/#wip"
}
GitHub Events
Total
- Create event: 12
- Commit comment event: 1
- Release event: 3
- Issues event: 14
- Watch event: 1
- Delete event: 7
- Issue comment event: 4
- Push event: 121
- Pull request event: 10
Last Year
- Create event: 12
- Commit comment event: 1
- Release event: 3
- Issues event: 14
- Watch event: 1
- Delete event: 7
- Issue comment event: 4
- Push event: 121
- Pull request event: 10
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 14
- Total pull requests: 7
- Average time to close issues: 4 months
- Average time to close pull requests: 10 minutes
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 0.21
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 1
- Bot pull requests: 0
Past Year
- Issues: 8
- Pull requests: 6
- Average time to close issues: 16 days
- Average time to close pull requests: 12 minutes
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 0.13
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 1
- Bot pull requests: 0
Top Authors
Issue Authors
- phuongquan (13)
- github-actions[bot] (1)
Pull Request Authors
- phuongquan (7)
Top Labels
Issue Labels
enhancement (2)
bug (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 361 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: mantis
Multiple Time Series Scanner
- Homepage: https://github.com/phuongquan/mantis
- Documentation: http://cran.r-project.org/web/packages/mantis/mantis.pdf
- License: GPL (≥ 3)
-
Latest release: 0.4.3
published 11 months ago
Rankings
Dependent packages count: 25.8%
Dependent repos count: 31.7%
Average: 47.7%
Downloads: 85.6%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- dplyr * imports
- dygraphs * imports
- magrittr * imports
- reactable * imports
- xts * imports
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
- tidyr * suggests