plot_hist: Plot Density Histogram

Description Usage Arguments Details Examples

View source: R/density-plot.R

Description

Plot Density Histogram

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_hist(
  data,
  rv,
  cutoff,
  binwidth = NULL,
  method = "mccrary",
  title = NULL,
  subtitle = NULL,
  theme = NULL,
  ...
)

Arguments

data

data to be used by plot

rv

Running variable for regression discontinuity design

cutoff

Cutoff to be used as the discontinuity

binwidth

Bin width to be used in histogram, will guess via guess_binwidth if none is specified

method

method to be used for guessing binwidth

Details

Plots a histogram with a vertical line at the discontinuity. Useful to check for manipulation.

Examples

1
2
# produces a density plot
density_plot(hansen_dwi, "bac1", cutoff = c(0.08))

be-green/shinyrd documentation built on April 14, 2020, 12:43 a.m.