Learn R Programming

tidybayes (version 2.0.3)

geom_eye: Eye plots of densities with point and interval summaries (Deprecated spellings)

Description

These are deprecated spellings of stat_eye(), stat_eyeh(), and stat_halfeyeh(). Use those functions instead.

Usage

geom_eye(..., scale = 0.9, .width = c(0.66, 0.95), relative_scale, .prob)

geom_eyeh(..., scale = 0.9, .width = c(0.66, 0.95), relative_scale, .prob)

geom_halfeyeh(..., scale = 0.9, .width = c(0.66, 0.95), relative_scale, .prob)

Arguments

...

Arguments passed to stat_sample_slabinterval()

scale

What proportion of the region allocated to this geom to use to draw the slab. If scale = 1, slabs that use the maximum range will just touch each other. Default is 0.9 to leave some space.

.width

The .width argument passed to interval_function or point_interval.

relative_scale

Deprecated. Use scale instead.

.prob

Deprecated. Use .width instead.

See Also

See stat_sample_slabinterval() and the shortcut stats documented there for the preferred way to generate these geoms.

Examples

Run this code
# NOT RUN {
library(magrittr)
library(ggplot2)

data(RankCorr, package = "tidybayes")

RankCorr %>%
  spread_draws(u_tau[i]) %>%
  ggplot(aes(y = i, x = u_tau)) +
  geom_eyeh()

RankCorr %>%
  spread_draws(u_tau[i]) %>%
  ggplot(aes(x = i, y = u_tau)) +
  geom_eye()

# }

Run the code above in your browser using DataLab