line.plot {figuRes2}R Documentation

line.plot

Description

A function for creating harmonized line plots with optional errorbars.

Usage

line.plot(
  parent.df,
  category.palette = c("red", "blue"),
  linetype.palette = c("dotted", "blank", "solid", "blank"),
  line.size = 0.75,
  shape.palette = c(24, 21),
  x.label = "Visit",
  y.label = "Response",
  category.label = "Treatment Group",
  x.limits = NULL,
  x.ticks = NULL,
  x.ticks.labels = NULL,
  addBars = TRUE,
  bar.width = 1,
  pdval = 0.25,
  x.col = "XVALUES",
  y.col = "YVALUES",
  y.limits = NULL,
  y.ticks = NULL,
  category.color = "CATEGORY.COLOR",
  category.symbol.col = "CATEGORY.SYMBOL",
  y.digits = 0,
  ymin.col = "YMIN",
  ymax.col = "YMAX",
  linetype.col = "LTYPE"
)

Arguments

parent.df

data.frame used by ggplot

category.palette

colors assoicated with categorical variable

linetype.palette

values passed to scale_linetype_manual

line.size

value gets passed to size within geom_line, geom_step

shape.palette

values passed to scale_shape_manual

x.label

value gets passed to labs

y.label

value gets passed to labs

category.label

passed to x-axis label

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

addBars

logical to add error bars (line.plot)

bar.width

used by line.plot

pdval

value passed to position_dodge (lineplot)

x.col

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

y.col

parent.df column associated with response vairable

y.limits

passed to scale_y_continuous

y.ticks

passed to scale_y_continuous

category.color

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

category.symbol.col

used by line.plot

y.digits

passed to scale_y_continuous label's, fmt (box.plot, line.plot)

ymin.col

name of parent.df column associated with ymin (line.plot errorbars)

ymax.col

name of parent.df column associated with ymax (line.plot errorbars)

linetype.col

name of parent.df column associated with linetype

Value

A ggplot object is returned.

Author(s)

Greg Cicconetti/David Wade


[Package figuRes2 version 1.0.0 Index]