Learn R Programming

bimixt (version 1.0)

plot.model: plot.model

Description

Plot method for a mixture model object.

Usage

"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.

See Also

summary.model print.model

Examples

Run this code
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)

Run the code above in your browser using DataLab