Skip to contents

Shows a multi-panel plot which displays histograms of geographic distance and JSD

Usage

plot_dists(
  mode = "infunc",
  data = NULL,
  formula = NULL,
  outcome = NULL,
  treatment = NULL
)

Arguments

data

sf object. Should include outcome, treatment, and coordinates

formula

formula. in y ~ x form.

outcome

character(1). Outcome variable name. Default is 'outcome'

treatment

character(1). Treatment variable name. Default is 'treatment'

Author

Insang Song (sigmafelix@hotmail.com)