Free examples and use-cases:   rpact vignettes
rpact: Confirmatory Adaptive Clinical Trial Design and Analysis

Summary

This R Markdown document provides many different examples for creating plots with rpact and ggplot2.

1 Preparation

First, load the rpact package

library(rpact)
packageVersion("rpact") # version should be version 3.0 or later
## [1] '3.3.2'

2 Design plots

2.1 One-sided design with futility bounds

design <- getDesignGroupSequential(
    kMax = 3,
    typeOfDesign = "OF", sided = 1,
    futilityBounds = c(0, 0.1)
)

plot(design, type = 1)