geom_eye: Eye plots of densities with point and interval summaries...

Description Usage Arguments Author(s) See Also Examples

View source: R/geom_eye.R

Description

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

Usage

1
2
3
4
5
6
7
8
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.

Author(s)

Matthew Kay

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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()

mjskay/tidybayes documentation built on Oct. 11, 2019, 5:18 p.m.