A function for creating harmonized forest.plots via ggplot2 offering compatiability with table.plot and dot.plot.
forest.plot(
parent.df,
y.rank.col = "rank",
Point.Est = "hr",
lower.lim = "low",
upper.lim = "high",
y.label.rank.col = "rank",
y.label.col = "subcategory",
x.label = "Estimate",
y.label = "Item",
log.trans = TRUE,
x.limits = c(0.21, 5),
x.ticks = 2^(-2:2),
y.limits = NULL,
category.color = "category",
background.palette = c("red", "blue"),
category.palette = c("red", "blue"),
shape.palette = c(16, 16),
flip.palette = FALSE
)
A ggplot object is returned.
data.frame used by ggplot
column holding ranks for line items in forest/dot/table plots
point estimate
column holding lower limit of CI
column holding upper limit of CI (forest.plot)
column holding ranks for labels in forest/dot/table plots
column holding labels for forest/dot/table plots
value gets passed to labs
value gets passed to labs
Logical; if TRUE log transformation is applied to x axis (ensure x.limits are positive!) (forest.plot)
value gets passed to scale_x_continuous
value gets passed to scale_x_continuous
passed to scale_y_continuous
data.frame column assocated with aes color mapping (forest.plot, line.plot, nsubj.plot, table.plot)
palette gets passed to scale_fill_manual (forest.plot)
colors assoicated with categorical variable
values passed to scale_shape_manual
logical; if TRUE it reverse the order of colors used for background (forest.plot)
Greg Cicconetti