plot.bmix: Plot a 'bmix' object.

View source: R/S3_methods_bmix.R

plot.bmixR Documentation

Plot a bmix object.

Description

Assemble a multi-panel plot using the plotting functions of the Bmix package, with default parameters.

Usage

plot.bmix(x, ...)

Arguments

x

An object of class bmix that represents a fit.

...

The ellipsis should contain a data parameter storing the actual data used to compute the fit x.

Value

A cowplot figure.

Examples


# The same dataset used in the package vignette
data = data.frame(successes = c(rbinom(30, 100, .4), rbinom(70, 100, .7)), trials = 100)

# BMix fit with default parameters
x = bmixfit(data)

# Empty plot
plot(x)

# Plot with data
plot(x, data)

caravagn/BMix documentation built on May 10, 2022, 7:41 p.m.