Re: [R] Nested boxplot groups

2014-03-29 Thread el_alisio
Hi, a reproducible example would help us to help you. In any case, you might want to consider a for-loop in combination with par(mfrow = c(?, ?)). The lattice or ggplot2 package might also provide a solution to your problem. Cheers, Jannes -- View this message in context:

Re: [R] Include Random Effects in Poisson Regressing (Nested Data)

2014-03-29 Thread el_alisio
Hi, one way to include a random effect would be: require(lme4) mymodel - lmer(counts ~ Season + Rainfall + (1 | Year), family = quasipoisson, data = mydata) Nevertheless, there are other ways to include a random effect using R. In any case, you need to provide justification why you are

Re: [R] Plotting the result of a gamm in lattice

2014-03-29 Thread el_alisio
Hi Stefano, first of all, it would be really helpful, if you provided a reproducible example. That way we could better help you!! Second of all, please have a look at ?gamm before posting a question: Returns a list with two items: gam an object of class gam, less information relating to

[R] lattice change font of one specific axis label in each panel

2014-03-27 Thread el_alisio
Dear R-users, I would like to change the font of one specific axis label to bold face in each panel. Taking one of Deepayan's plots as an example, how do I change All Postdoctorates to bold face? dotplot(prop.table(postdoc, margin = 1), groups = FALSE, index.cond = function(x, y) median(x), xlab

Re: [R] lattice change font of one specific axis label in each panel

2014-03-27 Thread el_alisio
Hi Kevin, thanks for the advice! The code is now reproducible. Sorry! Actually I wanted to print only one x-label (All Postdoctorates) in bold face, not all of them. This would be easily achieved, if All Postdoctorates appeared always in the same row of each panel, but this is not the case here.