# Réponse vs effets fixes ggplot(inverts,aes(x=temp,y=log(PLD+1),colour=feeding.type)) + geom_point() + stat_summary(aes(x=as.numeric(temp)),fun.y=mean,geom="line") + theme_bw() + scale_color_manual(values=c("#3B9AB2","#F21A00")) + # from Wes Anderson Zissou palette facet_wrap(~taxon) # Créer de nouvelles variables qui représentent toutes les combinaisons de feeding type x temp x taxa # (effets aléatoires) inverts <- within(inverts, { # taxon x feeding.type tft <- interaction(taxon,feeding.type,temp) tft <- reorder(tft, PLD, mean) }) # Boîte à moustaches total des fruits vs nouvelle variable (feeding type x temp x taxa) ggplot(data = inverts, aes(factor(x = tft),y = log(PLD))) + geom_boxplot(colour = "skyblue2", outlier.shape = 21, outlier.colour = "skyblue2") + theme_bw() + theme(axis.text.x=element_text(angle=90)) + stat_summary(fun.y=mean, geom="point", colour = "red")