tidyposterior (version 0.0.2)

ggplot.posterior: Visualize the Posterior Distributions of Model Statistics

Description

A simple violin plot is created by the function.

Usage

# S3 method for 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

Run this code
# NOT RUN {
# 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()
# }

Run the code above in your browser using DataLab