prior_post_plot: Plotting the prior and posterior distributions of a

Description Usage Arguments Value

View source: R/prior_post_plot.r

Description

This functions takes the output of prior_post_values and creates overlaying density plots for each effect.

Usage

1
prior_post_plot(object, extra_key = FALSE, scales = "free")

Arguments

object

A data frame resulting from the function prior_post_values or any similarly created data frame.

extra_key

Logical value indicating whether there is more than one key to facet the plots (note: if you used the function prior_post_values to get the values and did not modify it further, the first key is automatically called "key". A potential second key needs to be named "key2").

scales

Should scales be fixed ("fixed"), free ("free", the default), or free in one dimension ("free_x", "free_y")?

Value

A ggplot object.


masurp/pmstats documentation built on Oct. 6, 2020, 9:24 p.m.