A function for creating harmonized ggplot2 dot plots with compatiability with table.plot and forest.plot.
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")
)
A ggplot object is returned.
data.frame used by ggplot
data.frame column associated with categorical variable (bar.plot, box.plot, cdf.plot, dot.plot, km.plot)
column holding ranks for line items in forest/dot/table plots
column holding ranks for labels in forest/dot/table plots
column holding labels for forest/dot/table plots
point estimate
value gets passed to scale_x_continuous
value gets passed to scale_x_continuous
passed to scale_y_continuous
values passed to scale_shape_manual
value gets passed to labs
value gets passed to labs
colors assoicated with categorical variable
Greg Cicconetti