This function plots ESP indicator histograms

esp_hist(data, name, out, ...)

Arguments

data

The ESP indicator data. LONG format.

name

The file name for the image. Will be saved relative to the working directory. Only needed if saving the plot.

out

Whether the function should save the plot, or return a ggplot object. One of c("ggplot", "save")

...

Passed to ggplot2::ggsave

Value

An image file or a ggplot