Re: [R] help in conditional histogram

2010-04-28 Thread Changbin Du
Thanks, Felix! I do find another function definition in my current R console, do you know how to cancel it or delete it from the memory? > head(panel.histogram) 1 function (x, ...) 2 { 3 fc <- hist(x, plot = FALSE, right = F) 4 fcper <- fc$counts/sum(fc$counts) 5 hist(x, data = total

Re: [R] help in conditional histogram

2010-04-23 Thread Changbin Du
Dear Dr. Sarkar, When I try to run the codes, I found the following problem: > h<- sample(1:14, 319, rep=T) > c<- sample(1:14, 608, rep=T) > n<- sample(1:14, 1140, rep=T) > vt<-c(h, c, n) > ta<-rep(c("h", "c", "n"), c(319, 608, 1140)) > > to<-data.frame(vt,ta) > library(lattice) Attaching p