Re: [R] Loop FOR with histogram() from lattice

2013-06-05 Thread Jeff Newmiller
If you have read the Posting Guide, you will know that you should have read ALL the FAQs before posting your question. http://cran.r-project.org/doc/FAQ/R-FAQ.html That said, this particular FAQ applies to any library that depends on grid graphics, including lattice and ggplot2. ---

Re: [R] Loop FOR with histogram() from lattice

2013-06-05 Thread Xochitl CORMON
Hi Jim, Thank you a lot. Is it a FAQ concerning lattice or FOR loop in general? Regards, Xochitl C. Le 05/06/2013 10:55, Jim Holtman a écrit : This is an FAQ. you have to explicitly 'print' the histogram: print(histogram(~ Mpool[[2]]$LngtClas | Mpool[[2]]$SpCode, type = "count", col = "lig

Re: [R] Loop FOR with histogram() from lattice

2013-06-05 Thread Jim Holtman
This is an FAQ. you have to explicitly 'print' the histogram: print(histogram(~ Mpool[[2]]$LngtClas | Mpool[[2]]$SpCode, type = "count", col = "lightgrey", xlab= "LngtClas", main = paste("Length distribution per species for Mpool", "2", sep = "_"))) Sent from my iPad On Jun 5, 2013, at 4:37,

Re: [R] Loop FOR with histogram() from lattice

2013-06-05 Thread Gerrit Eichner
Hi, Xochitl, wrapping the call to histogram() inside your loop in a call to print() should solve your problem: print( histogram( .)) Regards -- Gerrit On Wed, 5 Jun 2013, Xochitl CORMON wrote: Hi all, I'm encountering a problem I do not understand on my data: library (lattice) M

[R] Loop FOR with histogram() from lattice

2013-06-05 Thread Xochitl CORMON
Hi all, I'm encountering a problem I do not understand on my data: library (lattice) Mpool1 <- Table[Table$Subarea %in% c("52E9", "51E9"),] Mpool2 <- Table[Table$Subarea %in% c("53F0", "52F0"),] Mpool3 <- Table[Table$Subarea %in% c("51F0", "50F0"),] Mpool4 <- Table[Table$Subarea %in% c("51F1",