View source: R/autoplot_pfun.R
autoplot.confMeta | R Documentation |
confMeta
objectsPlot one or more confMeta
objects. Currently, this function
can create two types of plots, the p-value function as well as the
forest plot. This allows to compare different p-value functions with
each other.
## S3 method for class 'confMeta'
autoplot(
...,
type = c("p", "forest"),
diamond_height = 0.5,
v_space = 1.5,
scale_diamonds = TRUE,
show_studies = TRUE,
drapery = TRUE,
reference_methods = c("re", "hk", "hc"),
xlim = NULL,
xlab = NULL
)
... |
One or more objects of class |
type |
A character vector of length 1 or 2. Indicates what type of
plot should be returned. Accepted is any combination of |
diamond_height |
Numeric vector of length 1. Indicates the maximal
possible height of the diamonds in the forest plot. Defaults to 0.5.
This argument is only relevant if |
v_space |
Numeric vector of length 1. Indicates the vertical space
between two diamonds in the forest plot. Defaults to 1.5.
This argument is only relevant if |
scale_diamonds |
Logical vector of lenght 1. Accepted values are either
|
show_studies |
Logical vector of lenght 1. Accepted values are either
|
drapery |
Either |
reference_methods |
A character vector of length 1, 2, 3 or 4. Denotes
the reference methods that should be shown in the plot. Valid options are
any combination of |
xlim |
Either NULL (default) or a numeric vector of length 2 which indicates the extent of the x-axis that should be shown. |
xlab |
Either NULL (default) or a character vector of length 1 which is used as the label for the x-axis. |
An object of class ggplot
containing the specified plot(s).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.