Skip to contents

Pivot a summary tibble from `ggdist` with multiple summary variables to long format. Summary variable names will be be pivoted to a 'name' column, and corresponding 'median', 'lower', 'upper' columns will contain computed quantile values.

Usage

reformat_ggdist_long(data, n = 1)

Arguments

data

a tibble output by a `ggdist` summary function (e.g. `ggdist:median_qi(...)`)

n

the number of grouping variables used (default: 1)

Value

a long format tibble with columns median, lower, and upper

Details

Intended for use when plotting distributions of multiple variables simultaneously.