Hello, I'm applying a self-written function to a matrix on basis of different levels. Is there any way, to get the level information within the self-written function??? t <- tapply(mat, levels, plotDensity) plotDensity <- function(x) { ??? print(level(x)) ??? } Antje