View source: R/forest_plot_1-to-many.R
forest_plot_basic2 | R Documentation |
This function is used to create a basic forest plot.
It requires the output from format_1_to_many()
.
forest_plot_basic2(
dat,
section = NULL,
colour_group = NULL,
colour_group_first = TRUE,
xlab = NULL,
bottom = TRUE,
trans = "identity",
xlim = NULL,
lo = lo,
up = up,
subheading_size = subheading_size,
colour_scheme = "black",
shape_points = 15
)
dat |
Output from |
section |
Which category in dat to plot. If |
colour_group |
Which exposure to plot. If |
colour_group_first |
The default is |
xlab |
x-axis label. Default= |
bottom |
Show x-axis? Default= |
trans |
x-axis scale. |
xlim |
x-axis limits. |
lo |
Lower limit of x axis. |
up |
Upper limit of x axis. |
subheading_size |
text size for the subheadings. The subheadings correspond to the values of the section argument. |
colour_scheme |
the general colour scheme for the plot. Default is to make all text and data points |
shape_points |
the shape of the data points to pass to |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.