fig_PharmPow_parallel: Figure for Pharmacometric power calculations for mixed...

Description Usage Arguments Author(s) Examples

View source: R/fig_PharmPow_parallel.r

Description

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

Usage

1
2
3
4
5
6
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)

Author(s)

Frank Kloprogge & Joel Tarning

Examples

1
2
3
4
5
6
7
8
9
# 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)

PharmPow documentation built on May 2, 2019, 2:07 a.m.