plot.model {bimixt}R Documentation

plot.model

Description

Plot method for a mixture model object.

Usage

## S3 method for class 'model'
plot(x, histogram = T, breaks = "Sturges", main = model$type, 

cols = c("#008ED6", "#990033"), ylab = "Density", xlab = "", ...)

Arguments

x

an object of type model from bimixt.model

histogram

a Boolean indicating whether to plot a histogram of the original data (default = true). Histogram is plotted using the hist function.

breaks

the types of breaks to be used in hist

main

a character string to be used as the title of the plot

cols

a vector of length 2 specifying the colors of the components c(color of control component, color of case component)

ylab

y label of the plot

xlab

x label of the plot

...

Not used.

Value

Plots a model object.

Author(s)

Michelle Winerip, Garrick Wallstrom, Joshua LaBaer

See Also

summary.model print.model

Examples

case=rmix(50,10,1.2,15,1,.7) 
control=rmix(50,10,1.2,15,1,.95) 
model=bimixt.model(case=case,control=control, type="4c") 
plot(model)

[Package bimixt version 1.0 Index]