Create Interactive Graphics Related to Clinical Trial Safety

A framework for evaluation of clinical trial safety. Users can interactively explore their data using the 'Shiny' application or create standalone 'htmlwidget' charts. Interactive charts are built using 'd3.js' and 'webcharts.js' 'JavaScript' libraries.


Travis-CI Build Status

The safetyGraphics package provides a framework for evaluation of clinical trial safety in R. The initial release focuses on Evaluation of Drug-Induced Serious Hepatotoxicity (eDISH). A prototype of the eDish interactive graphic is available here and is shown below.

This package is being built in conjunction with the safety-eDISH javascript library. Both packages are under active development with beta testing and an initial release planned for early 2019.

edishgif

Usage

Users can interactively explore their data with a shiny application or create standalone interactive charts.

Shiny application

The Shiny app provides a simple interface for:

  • Loading data
  • Customizing settings and data mappings
  • Viewing and exporting the interactive graphics
devtools::install_github("ASA-DIA-InteractiveSafetyGraphics/safetyGraphics")
library("safetyGraphics")
chartBuilderApp() #open the shiny application

Standalone charts

Users can also initialize customized standalone charts with a few lines of code.

devtools::install_github("ASA-DIA-InteractiveSafetyGraphics/safetyGraphics")
library("safetyGraphics")
eDISH(data=adlbc, 
      id_col = "USUBJID",
      value_col = "AVAL", 
      measure_col = "PARAM", 
      visit_col = "VISIT",
      visitn_col = "VISITNUM", 
      studyday_col = "ADY",
      normal_col_low = "A1LO", 
      normal_col_high = "A1HI", 
      measure_values = list(ALT = "Alanine Aminotransferase (U/L)",
                            AST = "Aspartate Aminotransferase (U/L)",
                            TB = "Bilirubin (umol/L)",
                            ALP = "Alkaline Phosphatase (U/L)"))

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("safetyGraphics")

0.7.3 by Jeremy Wildfire, 17 days ago


Browse source code at https://github.com/cran/safetyGraphics


Authors: Jeremy Wildfire [cre, aut] , Becca Krouse [aut] , Preston Burns [aut] , Xiao Ni [aut] , James Buchanan [aut] , Susan Duke [aut] , Rho Inc. [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, htmlwidgets, purrr, stringr, jsonlite, shiny, magrittr, DT, shinyjs, rmarkdown, rlang

Suggests testthat, shinytest, knitr


See at CRAN