<div dir="ltr"><div>Hola eRRer@s,</div><div><br></div><div>He creado un modelo mixto (adjunto) con lme4<br></div><div>He dibujado la predicción usando:</div><div style="margin-left:40px">df <- ggpredict(m.glob.pre.anu<br>                    , terms = c("pre", "area_m2", "sum.vs.win")<br>                    )<br>plot(df)</div><div>Luego he arreglado el gráfico usando:<br></div><div></div><div>
<div style="margin-left:40px">df <- ggpredict(m.glob.pre.anu<br>                    , terms = c("pre", "area_m2", "sum.vs.win")<br>                    )<br>plot(df)+<br>labs(title =  "Predicted number of annuals" # falla al posar 4 terms en el df<br>         ,x = "MAP"<br>         ,y = "Proportion of annuals"<br>         ) +<br>scale_x_continuous(breaks = c(-2,0,2)<br>                               , labels= etiquetas<br>                                )  +<br>labs(color="Area")<br></div></div><div>Pero me interesa más el modelo con 4 terms que sería:</div><div style="margin-left:40px">df <- ggpredict(m.glob.pre.anu<br>                    , terms = c("pre", "area_m2", "sum.vs.win", "data_type")<br>                    )<br>plot(df)</div><div>Hasta aquí funciona todo.</div><div>Pero si intento hacer los arreglos p.e.:</div><div style="margin-left:40px">
plot(df)+<br>labs(title =  "Predicted number of annuals"<br>         ,x = "MAP"<br>         ,y = "Proportion of annuals"<br>         ) <br></div><div>Me da el siguiente error:</div><div style="margin-left:40px">Error in plot(df) + labs(title = "Predicted number of annuals", x = "MAP",  : <br>  non-numeric argument to binary operator</div><div>Creo que el error se debe a que en el modelo ahora hay 4 terms en lugar de 3 ¿Puede ser?<br></div><div>¿Se os ocurre qué puede estar pasando? ¿Sabéis cómo puedo especificar los títulos, leyendas, etc. de otra forma?</div><div><br></div><div>Muchas gracias de antemano.<br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span>Dr. Jaume Tormo.<br>
Area of Ecology<br>
Department of Agrarian and Environmental Sciences<br>
Technological College. Agri-food and Environment<br>
University of Zaragoza, Spain<br>
0034 974292678<br>
</span><a href="https://es.linkedin.com/in/jaumetormo" rel="noreferrer" target="_blank">https://es.linkedin.com/in/jaumetormo</a><span><br>
<a href="https://acercad.wordpress.com/" rel="noreferrer" target="_blank">https://acercad.wordpress.com/</a><br>
</span></div>
<br></div>
</div></div></div>