table.plot | R Documentation |
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") )
parent.df |
data.frame used by ggplot |
y.rank.col |
column holding ranks for line items in forest/dot/table plots |
category.color |
data.frame column assocated with aes color mapping (forest.plot, line.plot, nsubj.plot, table.plot) |
text.col1 |
name of column holding text for column 1 (table.plot) |
text.col2 |
name of column holding text for column 2; can be NULL (table.plot) |
text.col3 |
name of column holding text for column 3; can be NULL (table.plot) |
text.col4 |
name of column holding text for column 4; can be NULL (table.plot) |
text.size |
value gets passed to geom_text |
xtick.labs |
xtick labels |
x.limits |
value gets passed to scale_x_continuous |
y.limits |
passed to scale_y_continuous |
x.label |
value gets passed to labs |
y.label |
value gets passed to labs |
y.label.rank.col |
column holding ranks for labels in forest/dot/table plots |
y.label.col |
column holding labels for forest/dot/table plots |
category.palette |
colors assoicated with categorical variable |
A ggplot object is returned.
Greg Cicconetti
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.