nsubj.plot {figuRes2}R Documentation

nsubj.plot

Description

A function to create tables to accompany KMs and lineplots

Usage

nsubj.plot(
  parent.df,
  category.palette = c("red", "blue"),
  x.label = "Number of Subjects",
  y.label = "Treatment\nGroup",
  text.size = 4,
  x.col = "XVALUES",
  text.col = "N",
  category.color = "CATEGORY",
  x.limits = c(0.5, 18),
  x.ticks = unique(parent.df$XVALUES),
  x.ticks.labels = unique(parent.df$XVALUES)
)

Arguments

parent.df

data.frame used by ggplot

category.palette

colors assoicated with categorical variable

x.label

value gets passed to labs

y.label

value gets passed to labs

text.size

value gets passed to geom_text

x.col

parent.df column associated with response vairable (line.plot, nsubj.plot)

text.col

used by nsubj.plot

category.color

data.frame column assocated with aes color mapping (forest.plot, line.plot, nsubj.plot, table.plot)

x.limits

value gets passed to scale_x_continuous

x.ticks

value gets passed to scale_x_continuous

x.ticks.labels

passed to scale_x_continuous

Value

A ggplot object is returned.

Author(s)

Greg Cicconetti/David Wade


[Package figuRes2 version 1.0.0 Index]