cld makes a compact letters display of the differences. The greatest different mean gets an “a” the second a “b” and so on. However I want the least mean to get an “a”, ie get the letters in a ascending order insted of a descending order.
Here is a reproducible example from the help:
data(warpbreaks)
amod <- aov(breaks ~ tension, data = warpbreaks)
tuk <- glht(amod, linfct = mcp(tension = "Tukey"))
tuk.cld <- cld(tuk)
tuk.cld
I have submitted a contribution to the
multcomppackage. Now thedecreasingflag control the order of the letters. Setting it toTRUEwill reverse the order.