tidyposterior (version 0.0.1)

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 <- system.file("examples", "roc_model.RData", package = "tidyposterior")
load(file)

posterior_values <- tidy(roc_model)

ggplot(posterior_values) + theme_bw()
# }

Run the code above in your browser using DataLab