dot.plot {figuRes2}R Documentation

dot.plot

Description

A function for creating harmonized ggplot2 dot plots with compatiability with table.plot and forest.plot.

Usage

dot.plot(
  parent.df = dot.df.melt,
  category.col = "Treatment",
  y.rank.col = "rank",
  y.label.rank.col = "label.rank",
  y.label.col = "subgroup",
  Point.Est = "percent",
  x.limits = c(0, 1),
  x.ticks = seq(0, 1, 0.2),
  y.limits = NULL,
  shape.palette = c(16, 17),
  x.label = "Estimate",
  y.label = "Item",
  category.palette = c("red", "blue")
)

Arguments

parent.df

data.frame used by ggplot

category.col

data.frame column associated with categorical variable (bar.plot, box.plot, cdf.plot, dot.plot, km.plot)

y.rank.col

column holding ranks for line items in forest/dot/table plots

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

Point.Est

point estimate

x.limits

value gets passed to scale_x_continuous

x.ticks

value gets passed to scale_x_continuous

y.limits

passed to scale_y_continuous

shape.palette

values passed to scale_shape_manual

x.label

value gets passed to labs

y.label

value gets passed to labs

category.palette

colors assoicated with categorical variable

Value

A ggplot object is returned.

Author(s)

Greg Cicconetti


[Package figuRes2 version 1.0.0 Index]