| bar_dunnett | R Documentation | 
The function performs the construction of a column chart of Dunnett's test.
bar_dunnett(
  output.dunnett,
  ylab = "Response",
  xlab = "",
  fill = c("white", "#F8766D", "#00BFC4"),
  sup = NA,
  add.mean = TRUE,
  round = 2
)
output.dunnett | 
 Numerical or complex vector with treatments  | 
ylab | 
 Variable response name (this argument uses the parse function)  | 
xlab | 
 Treatments name (this argument uses the parse function)  | 
fill | 
 Fill column. Use vector with two elements c(control, different treatment, no difference treatment)  | 
sup | 
 Number of units above the standard deviation or average bar on the graph  | 
add.mean | 
 Plot the average value on the graph (default is TRUE)  | 
round | 
 Number of cells  | 
Returns a column chart of Dunnett's test. The colors indicate difference from the control.
#====================================================
# 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",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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.