I don't understand how to find a plot of the true mixture density. In the following, I have provided the code which creates a function for the normal mixture. And I understand how to create each individual density plot, but I do not know how to find the true density.
NormalMix <- function(n,omega,mu1,mu2,sigma1,sigma2) {
z <- sample(2,n,replace=T,prob=c(omega,1-omega))
n1 <- sum(z==1)
n2 <- sum(z==2)
z[z==1] <- rnorm(n1,mu1,sigma1)
z[z==2] <- rnorm(n2,mu2,sigma2)
z
}