plot_ppmc_distribution: Plot PPMC parameter distributions

Description Usage Arguments Value Examples

View source: R/plot_ppmc_ridges.R

Description

Plot PPMC parameter distributions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_ppmc_distribution(
  data,
  column = NULL,
  method = "SJexpanded",
  ci_width = 0.89,
  density_ci = FALSE,
  smooth_density_ci = FALSE,
  color = "lightblue",
  n = 128,
  clean_data = FALSE
)

Arguments

data

numeric vector or dataframe

column

if data is a datframe specify a single column that should a plot be returned for

method

character; 'Mueller94' or 'SJexpanded'

ci_width

double

density_ci

boolean; should CI for density should be bootstrapped?

smooth_density_ci

boolean; should CI be smoothed?

color

color

n

integer, number of points of desity estimation; can be smaller for Mueller94 (start with 128)

clean_data

boolean; should infinite values and NaNs get removed?

Value

ggplot2 object

Examples

1
2
3
4
5
6
7
## 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) %>% select(or_dif)
birtsms::plot_ppmc_distribution()

## End(Not run)

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