ggplot.posterior: Visualize the Posterior Distributions of Model Statistics

Description Usage Arguments Value Examples

Description

A simple violin plot is created by the function.

Usage

1
2
3
## S3 method for class 'posterior'
ggplot(data, mapping = NULL, ...,
  environment = NULL, reorder = TRUE)

Arguments

data

An object produced by tidy.perf_mod().

mapping, ..., environment

Not currently used.

reorder

A logical; should the model column be reordered by the average of the posterior distribution?

Value

A ggplot2::ggplot() object using ggplot2::geom_violin() for the posteriors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Example objects from the "Getting Started" vignette at
#  https://topepo.github.io/tidyposterior/articles/Getting_Started.html

# File for pre-run model is at
ex_dat <- "https://bit.ly/2OJdvl1"

# load(load(url(ex_dat))

# posterior_values <- tidy(roc_model)

# library(ggplot2)
# ggplot(posterior_values) + theme_bw()

tidyposterior documentation built on May 2, 2019, 2:49 p.m.