Plots ensemble data as a histogram

plotHistEns(
  ens.data,
  quantiles = c(0.025, 0.25, 0.5, 0.75, 0.975),
  bins = 50,
  add.to.plot = ggplot(),
  alp = 1,
  fill = "grey50",
  font.size = 10,
  add.labels = TRUE,
  line.labels = NA,
  label.vert.position = 0.1
)

Arguments

ens.data

A data.frame of values to plot as a histogram

quantiles

a vecctor of quantiles to add the histogram

bins

Number of bins in the histogram

add.to.plot

A ggplot object to add these lines to. Default is ggplot()

alp

transparency (between 0 and 1)

fill

fill color of the histogram, following ggplot rules

font.size

font size for the labels

add.labels

Label the quantiles?

line.labels

Labels for the quantiles lines

label.vert.position

Vertical position of the quantiles (from 0 to 1)

Value

A ggplot object

Author

Nick McKay