library(lattice) hisfunc<- function (vari) { histogram(~ vari|target, data=total, type="count", layout=c(1,3), labels=TRUE, main="Histograms by target", col="skyblue") }
hisfunc(total$acid) HI, guys, I am using the hisfunc to get histograms for different variables, for the title of the histogram, I want to have different name for each variable. how can I DO ? Thanks! -- Sincerely, Changbin [[alternative HTML version deleted]] ______________________________________________ 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.