Draw Tukey Honest Significant Differences plot
ggHSD(tukey, no = 1, digits = 2, interactive = FALSE)
A object of class "TukeyHSD", the result of TukeyHSD()
An integer specify the order of list
integer indicating the number of decimal places
A logical value. If TRUE, an interactive plot will be returned
A (interactive) ggplot
# NOT RUN {
require(ggplot2)
fm1 <- aov(breaks ~ wool + tension, data = warpbreaks)
result=TukeyHSD(fm1, "tension", ordered = TRUE)
str(result)
ggHSD(result)
ggHSD(result,interactive=TRUE)
# }
Run the code above in your browser using DataLab