xpose.xtras

Extra Functionality for the 'xpose' Package

https://github.com/jprybylski/xpose.xtras

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 (21.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Extra Functionality for the 'xpose' Package

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 19
  • Releases: 3
Created over 1 year ago · Last pushed 10 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output:
  rmarkdown::github_document:
    html_preview: FALSE
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

```{r setup, echo=FALSE, include = FALSE}
library(dplyr)
library(xpose)
library(xpose.xtras)
```
# xpose.xtras 


[![R-CMD-check](https://github.com/jprybylski/xpose.xtras/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jprybylski/xpose.xtras/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/jprybylski/xpose.xtras/graph/badge.svg)](https://app.codecov.io/gh/jprybylski/xpose.xtras)
[![CRAN status](https://www.r-pkg.org/badges/version/xpose.xtras)](https://CRAN.R-project.org/package=xpose.xtras)
[![CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/xpose.xtras?color=blue)](https://cran.r-project.org/package=xpose.xtras)


## Introduction

This package adds some extra functionality and plots to the [`xpose`](https://uupharmacometrics.github.io/xpose/) framework. This includes some plots that have been missing in translation from [`xpose4`](https://uupharmacometrics.github.io/xpose4/), but also some useful features that truly extend the capabilities of what can be done with `xpose`.

There are a few bugfixes here and functionality which could easily be suggested as pull requests to the parent package. Given the size and broad use of `xpose`, it appears even minor pull requests take some time to implement. As such, this package implements those features directly and if at any point in the future these are added (perhaps in a better state) to the parent package, they will be deprecated if this package is in active use. 

For those wondering, [`conflicted`](https://conflicted.r-lib.org/) is used to manage bugfix conflicts, so users should be comfortable loading packages in any order.

## Installation

The package can be installed from CRAN:

```{r install_cran, eval=FALSE}
install.packages("xpose.xtras")
```

The typical github installation will also work.

```{r install, eval=FALSE}
pak::pak("jprybylski/xpose.xtras")
```

The main github branch is reserved for CRAN release-ready versions. The dev branch is usually ahead if there is active development.

```{r installdev, eval=FALSE}
pak::pkg_install("jprybylski/xpose.xtras@dev")
```

## Preview

The grandparent package, `xpose4`, used to have a nice collection of figures and documentation that is referred to as a "bestiarium". The documentation site for this package serves as a complete bestiary, but see the uncommented examples below as a sort of menagerie. There is no assumption that these examples are self-explanatory, but hopefully users familiar with `xpose` will recognize the new (and *re*newed) tools made available by this package.

### EBEs versus covariates

```{r eta_vs, fig.width=unit(6,"in"), fig.height=unit(3,"in"), fig.align='center'}
described <- xpdb_x %>%
  set_var_labels(AGE="Age", MED1 = "Digoxin", .problem = 1) %>%
  set_var_units(AGE="yrs")  %>%
  set_var_levels(SEX=lvl_sex(), MED1 = lvl_bin())
eta_vs_contcov(described,etavar=ETA1, quiet=TRUE)
eta_vs_catcov(described,etavar=ETA1, quiet=TRUE)
```


### Shark plots

```{r shark, fig.width=unit(7,"in"), fig.height=unit(5,"in"), fig.align='center'}
pheno_set %>%
  focus_qapply(backfill_iofv) %>%
  dofv_vs_id(run6, run9, quiet = TRUE)
```


### Categorical DVs

```{r m3, fig.width=unit(7,"in"), fig.height=unit(5,"in"), fig.align='center'}
pkpd_m3 %>%
  set_var_types(catdv=BLQ,dvprobs=LIKE) %>%
  set_dv_probs(1, 1~LIKE, .dv_var = BLQ) %>%
  set_var_levels(1, BLQ = lvl_bin()) %>%
  catdv_vs_dvprobs(quiet=TRUE)
```

```{r m3_roc, fig.width=unit(7,"in"), fig.height=unit(5,"in"), fig.align='center'}
nlmixr2_m3 %>%
  set_var_types(catdv=CENS,dvprobs=BLQLIKE) %>%
  set_dv_probs(1, 1~BLQLIKE, .dv_var = CENS) %>%
  set_var_levels(1, CENS = lvl_bin()) %>%
  roc_plot(quiet = TRUE)
```

Owner

  • Name: John Prybylski
  • Login: jprybylski
  • Kind: user

GitHub Events

Total
  • Create event: 8
  • Issues event: 34
  • Release event: 3
  • Delete event: 8
  • Issue comment event: 9
  • Public event: 1
  • Push event: 64
  • Pull request event: 15
Last Year
  • Create event: 8
  • Issues event: 34
  • Release event: 3
  • Delete event: 8
  • Issue comment event: 9
  • Public event: 1
  • Push event: 64
  • Pull request event: 15

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 17
  • Total pull requests: 11
  • Average time to close issues: about 5 hours
  • Average time to close pull requests: 39 minutes
  • Total issue authors: 2
  • Total pull request authors: 1
  • Average comments per issue: 0.24
  • Average comments per pull request: 0.18
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 17
  • Pull requests: 11
  • Average time to close issues: about 5 hours
  • Average time to close pull requests: 39 minutes
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.24
  • Average comments per pull request: 0.18
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jprybylski (15)
  • jpryby (2)
Pull Request Authors
  • jprybylski (11)
Top Labels
Issue Labels
bug (4) enhancement (3) lateral change (3) documentation (3)
Pull Request Labels
codex (6)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 224 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: xpose.xtras

Extra Functionality for the 'xpose' Package

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 224 Last month
Rankings
Dependent packages count: 27.7%
Dependent repos count: 34.2%
Average: 49.6%
Downloads: 87.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.5.0 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 2.10 depends
  • GGally * imports
  • assertthat * imports
  • cli * imports
  • colorspace * imports
  • conflicted * imports
  • dplyr >= 1.1.2 imports
  • forcats >= 1.0.0 imports
  • ggplot2 >= 3.4.2 imports
  • glue * imports
  • lifecycle * imports
  • magrittr * imports
  • pmxcv * imports
  • purrr >= 1.0.1 imports
  • readr >= 2.1.4 imports
  • rlang * imports
  • stats * imports
  • stringr >= 1.5.0 imports
  • tibble >= 3.2.1 imports
  • tidyr >= 1.3.0 imports
  • tidyselect * imports
  • utils * imports
  • vctrs * imports
  • xpose * imports
  • DiagrammeR * suggests
  • grDevices * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests
  • vdiffr * suggests