A function for creating harmonized table plots with A function for plotting columns of text in a figure offering compatiability with forest.plot and dot.plot.
table.plot(
parent.df,
y.rank.col = "Subcategory",
category.color = "Treatment",
text.col1 = "Point_Est",
text.col2 = NULL,
text.col3 = NULL,
text.col4 = NULL,
text.size = 12,
xtick.labs = c("", "", ""),
x.limits = NULL,
y.limits = NULL,
x.label = "Text",
y.label = "Item",
y.label.rank.col = "rank",
y.label.col = "subcategory",
category.palette = c("red", "blue")
)
A ggplot object is returned.
data.frame used by ggplot
column holding ranks for line items in forest/dot/table plots
data.frame column assocated with aes color mapping (forest.plot, line.plot, nsubj.plot, table.plot)
name of column holding text for column 1 (table.plot)
name of column holding text for column 2; can be NULL (table.plot)
name of column holding text for column 3; can be NULL (table.plot)
name of column holding text for column 4; can be NULL (table.plot)
value gets passed to geom_text
xtick labels
value gets passed to scale_x_continuous
passed to scale_y_continuous
value gets passed to labs
value gets passed to labs
column holding ranks for labels in forest/dot/table plots
column holding labels for forest/dot/table plots
colors assoicated with categorical variable
Greg Cicconetti