Le 11 février 2012 02:33, David Winsemius <dwinsem...@comcast.net> a écrit :
> > On Feb 10, 2012, at 7:05 PM, Adel ESSAFI wrote: > > Hi list >> >> >> I need some help for drawing some histograms >> >> I have a dataframe , say, >> X Y Z T >> >> I want to draw a histogram Z-T for each value of the couple (X-Y). >> When I use thus syntax >> >> library(lattice) >>> histogram(law[,3] ~ law[,66] | law[,1] ) >>> >> > Perhaps (but untested in the absence of data); > > histogram( Z ~ T | interaction(X, Y) , data=dfrmname ) > > Thanks , that helped a lot. now, I have another problem: I want to draw many (two) figures together. The par(new=T) directve does not recognize the ploy provided by lattice library when I tired : > xyplot(law[,66] ~ law[,3]| interaction(law[,1],law[,2]),type='l') > par(new=T) *Warning message: In par(new = T) : calling par(new=TRUE) with no plot* > xyplot(law[,67] ~ law[,3]| interaction(law[,1],law[,2]),type='l') and the second xyplot() draws a new figure. what can I do to draw to figures together using lattice? Thanks > > >> it draws multiple histograms but by selecting distinct values of law[,1] >> The deal is to make the same thing but for a couple of columns >> >> Thanks in advance for help >> >> Adel >> >> > -- > > David Winsemius, MD > West Hartford, CT > > -- PhD candidate in Computer Science Address 3 avenue lamine, cité ezzahra, Sousse 4000 Tunisia tel: +216 97 246 706 (+33640302046 jusqu'au 15/6) fax: +216 71 391 166 [[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.