Dear Jorge, I appreciate your help. I didn't forget this arguments, I just didn't know it ;)
Now I adjust my code and it works well. Thanks a lot! If I can have one more question: g <- rep(c(1, 2), each = 1000) what if the number of values is not equal? Przemek -- View this message in context: http://r.789695.n4.nabble.com/sm-density-compare-a-lot-of-curves-tp4253039p4256368.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.