Learn R Programming

PharmPow (version 1.0)

fig_PharmPow_parallel: Figure for Pharmacometric power calculations for mixed parallel study designs

Description

This funcion enables the figure customisation for power calculations of a mixed parallel study design

Usage

fig_PharmPow_parallel(data, power = 80, colorabove = "black", colorbelow = "red", designAlab = "Number of patients sampling design A", designBlab = "Number of patients sampling design B", zaxeslab = "power (%)", axessize = 1, labsize = 1)

Arguments

data
The .csv file containing the numerical results from power calculations for a parallel design can be defined here
power
The target power for the study designs can be defined here (default is 80%)
colorabove
The color for designs above the set target can be defined here (default is black)
colorbelow
The color for designs below the set target can be defined here (default is red)
designAlab
The label for design A can be defined here (default is "Number of patients sampling design A"")
designBlab
The label for design B can be defined here (default is "Number of patients sampling design B")
zaxeslab
The label for z-axes can be defined here (default is "power (%)")
axessize
The relative size of the axes can be defined here (default is 1.0)
labsize
The relative size of the labels can be defined here (default is 1.0)

Examples

Run this code
# Customised figure for a parallel study design
fig_PharmPow_parallel(data=system.file("extdata","Parallel_results.csv",
                                       package="PharmPow"), 
                      power = 80, 
                      colorabove = "green", colorbelow = "red", 
                      designAlab = "Number of patients with design A", 
                      designBlab = "Number of patients with design B", 
                      zaxeslab = "power (percent)", 
                      axessize = 1.2, labsize = 1.2)

Run the code above in your browser using DataLab