plot_usk: Unbalanced Scott-Knott (USK) on a Ggplot2 Graphic

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/plot_usk.R

Description

plot_usk is used to show the usktest result, that do the Scott-Knott cluster analysis (1974) for unbalanced designs proposed at 2017 (CONRADO, Thiago Vincenzi et al), in a ggplot2 graphic. To learn more, see the article.

Usage

1
plot_usk(test)

Arguments

test

is the plot_usk function.

Value

This function returns a ggplot2 graph with:

Author(s)

Felipe Ferreira felipe179971@hotmail.com

References

CONRADO, T. V; FERREIRA, D. F.; SCAPIM, C. A.; MALUF, W. R. (2017) Adjusting the Scott-Knott cluster analyses for unbalanced designs.

See Also

For another graphic: plotly_usk. See also the packages ScottKnott, ScottKnottESD and multcomp.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
taus=c(4,4,-4,-4,9,-9)
Tratamento<-as.factor(rep(c(paste("trat",seq(1:length(taus)))),3))
erro<-rnorm(3*length(taus),0,1)
y<-2+taus+erro
y[round(runif(1,min=1,max=length(y)),0)]<-NA
dados<-data.frame(y,Tratamento)

test<-usktest(y~Tratamento,dados)
#plotly
plotly_usk(test)
#ggplot2
plot_usk(test)

felipe179971/USK documentation built on Dec. 20, 2021, 7:49 a.m.