Re: [R] help with "macro" in R

2010-04-06 Thread David Winsemius
On Apr 6, 2010, at 6:29 PM, Changbin Du wrote: 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 fo

[R] help with "macro" in R

2010-04-06 Thread Changbin Du
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 histogr