plot_RDscatter: Scatterplot of binned raw observations

Description Usage Arguments Examples

View source: R/plots.R

Description

Scatterplot of raw observations in which each point corresponds to an binned average.

Usage

1
2
plot_RDscatter(d, avg = 10, xlab = NULL, ylab = NULL, window = NULL,
  vert = TRUE, propdotsize = FALSE)

Arguments

d

RDdata object

avg

is number of observations to average over. If set to Inf, then take averages for each possible value of the running variable (convenient when the running variable is discrete)

xlab, ylab

x- and y-axis labels

window

Width of a window around cutoff to which the graph should be restricted. If not specified, full data range will be plotted

vert

Draw a vertical line at cutoff?

propdotsize

If TRUE, then size of points is proportional to numer of observations that the point averages over (useful when avg=Inf). Otherwise the size of points is constant.

Examples

1
plot_RDscatter(RDData(lee08, cutoff=0), avg=20)

kolesarm/RDHonest documentation built on April 3, 2018, 11:08 a.m.