Skip to contents

Creates a density plot of surprise values.

Usage

geom_surprise_density(
  mapping = NULL,
  data = NULL,
  which = c("surprise", "signed_surprise"),
  fill = "#4575b4",
  color = "black",
  ...
)

Arguments

mapping

Aesthetic mapping

data

Data with surprise values

which

Which surprise to plot: "surprise" or "signed_surprise"

fill

Fill color

color

Border color

...

Additional arguments passed to ggplot2::geom_histogram()

Value

A ggplot2 layer