Hi Jim, jim holtman schrieb: > Here is one way: > > t <- split(mat, classes) > for (i in names(t)) plotdensity(t[[i]], main=i) >
But then I don't use the advantages of the tapply anymore... > What is the problem you are trying to solve? I have a set of data (multiple files), which belong to different conditions (one or more files per condition). I wanted to read the data set and a "description" of the conditions and then automatically create plots for data of the same condition. Maybe it's much to complicate the way I do... Antje ______________________________________________ R-help@stat.math.ethz.ch 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.