table.plot {figuRes2}R Documentation

table.plot

Description

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.

Usage

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")
)

Arguments

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

Value

A ggplot object is returned.

Author(s)

Greg Cicconetti


[Package figuRes2 version 1.0.0 Index]