nsubj.plot | R Documentation |
A function to create tables to accompany KMs and lineplots
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) )
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 |
A ggplot object is returned.
Greg Cicconetti/David Wade
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.