I performed an ANOVA and corrected it with Tukey's test, so I got several values of P. Now I would like to build a Heatmap with these values and for that I need to create an matrix with the values of P to be able to make my Heat map
The first question would be how to fill a matrix with the anova p-values?
Then I made an ancova and obtained other p-values.
Now I would like to make a heatmap to compare these p-values between the anova and the ancova.
Can someone help me ?
I will exemplify
anova_model <- aov( X ~ groups , data = T1) postHocs <- glht(anova_model, linfct = mcp(groups = "Tukey")) summary(postHocs)
This anova gave me several values of P(!)
ancova_model <- aov( X ~ groups + age , data = T1) postHocs <- glht(ancova_model, lymphct = mcp(groups = "Tukey")) summary(postHocs)
This ancova gave me several other values of P(!)
I would now like to create a Heat map to compare these P values. To see for example when age interferes a lot or not. I believe that before the ideal is to create a matrix before but I'm actually kind of lost.
Could someone help me?
Thank you very much