Last chance! 50% off unlimited learning
Sale ends in
The function performs the construction of a column chart of Dunnett's test.
bar_dunnett(
output.dunnett,
ylab = "Response",
xlab = "",
fill = c("#F8766D", "#00BFC4"),
sup = NA,
add.mean = TRUE,
round = 2
)
Returns a column chart of Dunnett's test. The colors indicate difference from the control.
Numerical or complex vector with treatments
Variable response name (Accepts the expression() function)
Treatments name (Accepts the expression() function)
Fill column. Use vector with two elements c(control, different treatment)
Number of units above the standard deviation or average bar on the graph
Plot the average value on the graph (default is TRUE)
Number of cells
#====================================================
# randomized block design in factorial double
#====================================================
library(AgroR)
data(cloro)
attach(cloro)
respAd=c(268, 322, 275, 350, 320)
a=FAT2DBC.ad(f1, f2, bloco, resp, respAd,
ylab="Number of nodules",
legend = "Stages",mcomp="sk")
data=rbind(data.frame(trat=paste(f1,f2,sep = ""),bloco=bloco,resp=resp),
data.frame(trat=c("Test","Test","Test","Test","Test"),
bloco=unique(bloco),resp=respAd))
a= with(data,dunnett(trat = trat,
resp = resp,
control = "Test",
block=bloco,model = "DBC"))
bar_dunnett(a)
Run the code above in your browser using DataLab