• Stars
    star
    179
  • Rank 214,039 (Top 5 %)
  • Language
    R
  • License
    Other
  • Created about 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A package to wrap functionality for plots, tables and diagrams adhering to graphical principles.

visR

Lifecycle: experimental Codecov test coverage R-CMD-check CRAN status

The goal of visR is to enable fit-for-purpose, reusable clinical and medical research focused visualizations and tables with sensible defaults and based on sound graphical principles.

Package documentation

Motivation

By using a common package for visualising data analysis results in the clinical development process, we want to have a positive influence on

  • choice of visualisation by making it easy explore different visualisation and to use impactful visualisations fit-for-purpose
  • effective visual communication by making it easy to implement best practices

We are not judging on what visualisation you chose for your research question, but want to facilitate and support good practice.

You can read more about the philosophy and architecture in the repo wiki.

Installation

The easiest way to get visR is to install from CRAN:

install.packages("visR")

Install the development version from GitHub with:

# defaults to main branch
devtools::install_github("openpharma/visR") 

Examples

Visualization

This is a basic example to demonstrate how the API can be used to add layers to a visualization. This example demonstrates a time-to-event analysis. The example calculates and then plots stratified Kaplan-Meier by treatment. It is possible to add uncertainty intervals, censoring information, and a risk table using additional functions.

library(visR)
library(ggplot2)

theme_set(theme_minimal())

adtte %>%
  estimate_KM(strata = "TRTP", conf.int = 0.90) %>%
  visr(legend_position = "right", x_unit = "Days") %>%
  add_CI(style = "ribbon") %>%
  add_CNSR(shape = 3, size = 1) %>%
  add_risktable(
    statlist = c("n.risk", "n.event", "n.censor"),
    label = c("At risk", "Event", "Censor")
  )

Cite visR

> citation("visR")

Contributing

Please note that the visR project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms. Thank you to all contributors:

@AlexandraP-21, @ardeeshany, @bailliem, @cschaerfe, @ddsjoberg, @diego-s, @epijim, @galachad, @gdario, @ginberg, @jameshunterbr, @jinjooshim, @joanacmbarros, @Jonnie-Bevan, @kawap, @kawap93, @kentm4, @krystian8207, @kzalocusky, @lcomm, @lesniewa, @prabhushanmup, @rebecca-albrecht, @SHAESEN2, @thanos-siadimas, @thomas-neitmann, @timtreis, @yonicd

More Repositories

1

mmrm

Mixed Models for Repeated Measures (MMRM) in R.
R
128
star
2

DataFakeR

DataFakeR is an R package designed to help you generate sample of fake data preserving specified assumptions about the original one.
R
29
star
3

simaerep

simulate adverse event reporting in clinical trials with the goal of detecting under-reporting sites.
R
21
star
4

crmPack

Object-Oriented Implementation of CRM Designs
HTML
20
star
5

brms.mmrm

R package to run Bayesian MMRMs using {brms}
R
18
star
6

roxylint

Lint 'roxygen2'-generated documentation
R
14
star
7

rinpharma_workshop_2021

R
12
star
8

staged.dependencies

R package to implement development stages for package development
R
12
star
9

openpharma.github.io

Further precompetitive collaboration in life science area.
R
10
star
10

RDO

Reproducible Data Objects (RDO) in R
R
10
star
11

rbqmR

Tools for Risk-Based Quality Management in R
R
10
star
12

clindata

Easy access to standard example clinical trial data sets in an R package.
Shell
8
star
13

opensource_dashboard

Building a tool to help explore and understand open source projects used in Pharma (mostly R repos)
Python
8
star
14

RobinCar2

R
7
star
15

SafetySignalDetection.jl

Bayesian Safety Signal Detection in Julia
HTML
5
star
16

elaborator

A novel concept for generating knowledge and gaining insights into laboratory data. You will be able to efficiently and easily explore your laboratory data from different perspectives.
R
5
star
17

quality_risk_assesment_clinical_trials

code repo with analysis code for Koneswarakantha B., MΓ©nard T. "An update on statistical modeling for quality risk assessment of clinical trials"
R
5
star
18

filters

R
4
star
19

pypharma_nlp

A repository for the code used at the PyPharma Conference NLP Turorial.
Jupyter Notebook
4
star
20

facetsr

This package is using html widgets to wrap facets into R
R
4
star
21

savvyr

savvyr: Estimation of adverse event probabilities
R
4
star
22

beeca

lightweight R package around covariate adjustment
R
4
star
23

BBS-causality-training

2021 Causality Training by the Basel Biometric Section of the Austro-Swiss Region of the International Biometric Society
R
3
star
24

roxytypes

typed parameter definitions for `roxygen2`
R
3
star
25

autoquarto

Utilities for programmatic generation of Quarto output
JavaScript
3
star
26

GithubMetrics

gh wrapper for easier management of Github related study metadata
R
2
star
27

mtdesign

Two-Stage Designs Optimal Under the Alternative Hypothesis for Phase II [Cancer] Clinical Trials
R
2
star
28

sas7bdat

fork of https://bitbucket.org/jaredhobbs/sas7bdat.git
Python
1
star
29

CTP

R package providing functions for creating the closure set of multiple hypotheses and performing closed testing procedures.
R
1
star
30

syntrial

create a synthetic "twin trial" of clinical trial data
R
1
star
31

beeca-simulations

Simulations supporting Magirr et al (2024)
R
1
star
32

DoseFinding

R
1
star