forest_plot | R Documentation |
Forest plot
forest_plot(
tabletext,
estimate.data,
appendHeader = NULL,
specify.summary = NULL,
clipping = c(0.1, 4),
graph.pos = "right",
xlab = "",
xlog = TRUE,
xticks = c(0.1, 0.5, seq(1, 4, 1)),
x.font.size = 1
)
tabletext |
data.frame. Column names will be used as header. |
estimate.data |
Estimate, upper CI, lower CI. Corresponded with tabletext |
appendHeader |
If provide a vector, top header will be added |
specify.summary |
Specify the row index. Row will be bold character. |
clipping |
Range to cut. Will use arrow at two cutting points |
graph.pos |
Column index, or "left" or "right". Column index to put in right section |
xlab |
xlab |
xlog |
If in log-format. If TRUE, vectical line in 0, otherwise a vectical line at 0 |
xticks |
Default c(0.1, 0.5, 1, 2, 3, 4) |
x.font.size |
x-axis label font size. |
data(LIRI)
or.res <- loonR::univariate_or(LIRI[,c(1,3,4)],LIRI$status)
estimate.data = or.res[,c(2,3,4)]
text.data = data.frame(Variate = or.res$Variate, OR = or.res$OR)
loonR::forest_plot(text.data, estimate.data, graph.pos = 2, specify.summary = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.