View source: R/f_design_plan_plot.R
plot.TrialDesignPlan | R Documentation |
Plots a trial design plan.
## S3 method for class 'TrialDesignPlan'
plot(
x,
y,
...,
main = NA_character_,
xlab = NA_character_,
ylab = NA_character_,
type = NA_integer_,
palette = "Set1",
theta = NA_real_,
plotPointsEnabled = NA,
legendPosition = NA_integer_,
showSource = FALSE,
grid = 1,
plotSettings = NULL
)
x |
The trial design plan, obtained from |
y |
Not available for this kind of plot (is only defined to be compatible to the generic plot function). |
... |
Optional plot arguments. At the moment |
main |
The main title. |
xlab |
The x-axis label. |
ylab |
The y-axis label. |
type |
The plot type (default =
|
palette |
The palette, default is |
theta |
A vector of standardized effect sizes (theta values), default is a sequence from -1 to 1. |
plotPointsEnabled |
Logical. If |
legendPosition |
The position of the legend.
By default (
|
showSource |
Logical. If
Note: no plot object will be returned if |
grid |
An integer value specifying the output of multiple plots.
By default ( |
plotSettings |
An object of class |
Generic function to plot all kinds of trial design plans.
Returns a ggplot2
object.
## Not run:
if (require(ggplot2)) plot(getSampleSizeMeans())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.