Function of the AgroR package for the analysis of experiments conducted in a balanced qualitative single-square Latin design with multiple assessments over time, however without considering time as a factor.
response: Numerical vector containing the response of the experiment.
alpha.f: Level of significance of the F test (default is 0.05)
alpha.t: Significance level of the multiple comparison test (default is 0.05)
mcomp: Multiple comparison test (Tukey (default), LSD, Scott-Knott and Duncan)
error: Add error bar (SD)
xlab: Treatments name (Accepts the expression() function)
ylab: Variable response name (Accepts the expression() function)
textsize: Font size of the texts and titles of the axes
labelsize: Font size of the labels
pointsize: Point size
family: Font family
sup: Number of units above the standard deviation or average bar on the graph
addmean: Plot the average value on the graph (default is TRUE)
posi: Legend position
geom: Graph type (columns - "bar" or segments "point")
fill: Defines chart color (to generate different colors for different treatments, define fill = "trat")
legend: Legend title
ylim: Define a numerical sequence referring to the y scale. You can use a vector or the seq command.
width.bar: width error bar
size.bar: size error bar
dec: Number of cells
theme: ggplot2 theme (default is theme_classic())
xnumeric: Declare x as numeric (default is FALSE)
all.letters: Adds all label letters regardless of whether it is significant or not.
Returns
The function returns the p-value of Anova, the assumptions of normality of errors, homogeneity of variances and independence of errors, multiple comparison test, as well as a line graph
Details
The p-value of the analysis of variance, the normality test for Shapiro-Wilk errors, the Bartlett homogeneity test of variances, the independence of Durbin-Watson errors and the multiple comparison test ( Tukey, Scott-Knott, LSD or Duncan).
Note
The ordering of the graph is according to the sequence in which the factor levels are arranged in the data sheet. The bars of the column and segment graphs are standard deviation.