Help to filter column and plot by each "element" column using emmip function

Hi all,

I'm doing an interaction contrast analysis and struggling with to arrange the variable "tiempo" in the this order: 6, 9, 12, 15 and 18.

I don't know what is the problem now.

The code is:

cont_nutrientes.lm = lm(contenido ~ tratamientos * elemento * tiempo, data = analisis_foliar)

anova(cont_nutrientes.lm)

grg = add_grouping(ref_grid(cont_nutrientes.lm), "group", "tiempo", factor(c("trt", "trt", "trt","trt", "trt")))

emmip(grg, tratamientos~tiempo |elemento, nesting.order=FALSE)

Also, I'd like to show every plot individually for each element?


Any suggestions?

Thank you!

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

1 Like

Well, a short view of my data set is the following:


The problem is I want to plot by each "element" not for all of them

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.