Description Usage Arguments Author(s) Examples
View source: R/fig_PharmPow_crossover.r
This funcion enables the figure customisation for power calculations of a mixed crossover study design
1 2 3 4 5 6 | fig_PharmPow_crossover(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)
|
data |
The .csv file containing the numerical results from power calculations for a crossover 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) |
Frank Kloprogge & Joel Tarning
1 2 3 4 5 6 7 8 9 | # Customised figure for a crossover study design
fig_PharmPow_crossover(data=system.file("extdata","Cross_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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.