| forestplot | R Documentation |
This version is a simplified version of ggforest::forestplot that removes confidence interval
computation and allows for a lower bound and upper bound values
forestplot(
df,
name = author,
r_legend = NULL,
l_legend = NULL,
estimate = VE,
lower = LB,
upper = UB,
colour = NULL,
shape = NULL,
xrange = c(0, 100),
xbreaks = c(0, 25, 50, 75, 100),
base_size = 13,
legend_size = 3,
...
)
df |
A data frame with the data to plot. It must contain at least three
variables, a character column with the names to be displayed on the y-axis
(see parameter |
name |
the variable in |
r_legend |
the variable in |
l_legend |
the variable in |
estimate |
the variable in |
lower |
the variable in |
upper |
the variable in |
colour |
the variable in |
shape |
the variable in |
xrange |
default range of x range. Alternate striped background will use this value. The actual xlim parameter from ggplot will be expanded by 10% each side. Values outside this range will not be diplayed |
xbreaks |
breaks on x axis |
base_size |
base font size, given in pts. |
legend_size |
Size of left and right legend (not sure of unit but definitively not the same as base_size)
|
... |
|
A ggplot object.
Maria Kalimeri, Ilari Scheinin, Vilma Jagerroos
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.