Re: [R] Help required graphing factors with predicted model settings

2013-10-11 Thread Michael Friendly
On 10/10/2013 11:33 PM, Rebecca Stirnemann wrote: Hi Michael, Thanks! That worked. Which is so brilliant! A couple of questions. In regards to display. Do you know how to add labels on to the graph? The code below doesn't work. Not surprising, since your data, mao1, is not in the lme4

Re: [R] Help required graphing factors with predicted model settings

2013-10-10 Thread Michael Friendly
Perhaps you are looking for the effects package, which can plot effects (predicted values) for terms in mer objects from lme4? library(effects) ?effect library(lme4) data(cake, package=lme4) fm1 - lmer(angle ~ recipe * temperature + (1|recipe:replicate), cake, REML = FALSE)

[R] Help required graphing factors with predicted model settings

2013-10-09 Thread Rebecca Stirnemann
Dear R wizards, Though I hate to do it after weeks of my code not working I need some help since I cant find an example which seems to work. I am trying to create a graph which show the probability of predation of a nest on one side (either 1 to 0) or (0% to 100%) on one side and grass height at

Re: [R] Help required graphing factors with predicted model settings

2013-10-09 Thread Jim Lemon
On 10/10/2013 08:35 AM, Rebecca Stirnemann wrote: Dear R wizards, Though I hate to do it after weeks of my code not working I need some help since I cant find an example which seems to work. I am trying to create a graph which show the probability of predation of a nest on one side (either 1 to

Re: [R] Help required graphing factors with predicted model settings

2013-10-09 Thread Rebecca Stirnemann
Thanks Jim for helping, Your sample data actually looks like my dataset. The one I put up looks strange for some reason so please ignore that. I have three landusenumb variables 1 2 and 3. is rep (1,2,3) correct? When I run the following code I am getting: mod1 - glmer(frat ~ flandusenumb +

Re: [R] Help required graphing factors with predicted model settings

2013-10-09 Thread Rebecca Stirnemann
But with three lines for the three habitat types and grass length at the bottom On Thu, Oct 10, 2013 at 5:52 PM, Rebecca Stirnemann rstirnem...@gmail.comwrote: Thanks Jim for helping, Your sample data actually looks like my dataset. The one I put up looks strange for some reason so please

Re: [R] Help required graphing factors with predicted model settings

2013-10-09 Thread Jim Lemon
On 10/10/2013 03:52 PM, Rebecca Stirnemann wrote: Thanks Jim for helping, Your sample data actually looks like my dataset. The one I put up looks strange for some reason so please ignore that. I have three landusenumb variables 1 2 and 3. is rep (1,2,3) correct? When I run the following code I