Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 682 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 682 Bytes

clinical.timelines

Create clinical-timelines in R.

Example

This is a basic example which shows you how to solve a common problem:

library(clinical.timelines)

data <- read.csv("https://raw.githubusercontent.com/RhoInc/data-library/master/data/clinical-trials/renderer-specific/adtimelines.csv")

clinical_timeline(data)

# groupings
data |> 
  clinical_timeline(data) |> 
  clinical_settings(
    groupings = list("ARM", "SITEID"), 
    grouping_initial = "ARM"
  ) 

# time_scale
data |> 
  clinical_timeline(data) |> 
  clinical_settings(
    time_scale = "day"
  )