plot_ppmc_ridges: Plot multiple PPMC parameter distributions Deprecated!

Description Usage Arguments Value Examples

Description

Plot multiple PPMC parameter distributions Deprecated!

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_ppmc_ridges(
  data,
  parameter,
  group = 0,
  rope = FALSE,
  hdi = TRUE,
  ci_width = 0.89,
  color = "lightblue",
  range = NULL,
  custom_ci = NULL,
  ...
)

Arguments

data

tibble

parameter

column name that holds numeric values to plot density ridges for

group

column name to optionally specify that multiple density ridges should be plotted regarding the grouping value

rope

boolean; should the rope be plotted as a gray area?

hdi

boolean; should HDI or equitailed region be plotted

ci_width

double

color

color; sets color of ridges

range

double; c(min, max) used for setting xlim in coord_cartesian()

custom_ci

double vector to pass the ci limits manually (e.g. when )

...

arguments passed to ggridges::stat_density_ridges()

Value

ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
or_data <- get_or(fit, n_samples = 500)
or_data %>% select(-or_rep_samples) %>% filter(item1 == 1, item2 == 2) %>%
birtsms::unnest_keep_attr(or_dif_samples) %>%
birtsms::plot_ppmc_distribution(or_dif)

or_data %>% select(-or_rep_samples) %>% filter(item1 == 1, item2 %in% 2:4) %>%
birtsms::unnest_keep_attr(or_dif_samples) %>%
birtsms::plot_ppmc_distribution(or_dif, group = item2, rope = TRUE)

## End(Not run)

Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.