Learn R Programming

bacon (version 1.0.4)

plotnormmix: plot normal mixtures

Description

plot normal mixtures

Usage

plotnormmix(x, theta, ...)

Arguments

x
vector of test statistics
theta
parameters describing the mixture components
...
arguments passed to hist

Value

return plot with histogram of the data and mixture and individual components

Details

details follow

Examples

Run this code
n <- 2000
theta <- c(0.8, 0, 1, 0, 4, 1)
x <- rnormmix(n, theta)
plotnormmix(x, theta)

Run the code above in your browser using DataLab