library(AgroR)
data(pomegranate)
with(pomegranate, DIC(trat, WL, ylab = "Weight loss (%)")) # tukey
with(pomegranate, DIC(trat, WL, mcomp = "sk", ylab = "Weight loss (%)"))
with(pomegranate, DIC(trat, WL, mcomp = "duncan", ylab = "Weight loss (%)"))
#=============================
# Kruskal-Wallis
#=============================
with(pomegranate, DIC(trat, WL, test = "noparametric", ylab = "Weight loss (%)"))
#=============================
# chart type
#=============================
with(pomegranate, DIC(trat, WL, geom="point", ylab = "Weight loss (%)"))
with(pomegranate, DIC(trat, WL, ylab = "Weight loss (%)", xlab="Treatments"))
#=============================
# quantitative factor
#=============================
data("phao")
with(phao, DIC(dose,comp,quali=FALSE,grau=2,
xlab = expression("Dose"~(g~vase^-1)),
ylab="Leaf length (cm)"))
#=============================
# data transformation
#=============================
data("pepper")
with(pepper, DIC(Acesso, VitC, transf = 0,ylab="Vitamin C"))
Run the code above in your browser using DataLab