Dear R experts
I am quite confortable with R for Anova processes, but I found an unexpected difficulty to label "barplot2" for having a convenient sensitivity diagram of terms influences.
When typing :
y_TWI=aov(Donnees[,k] ~ (H1+H2+H3+H4+H5)*(H1+H2+H3+H4+H5))
anov_TWI=anova(y_TWI)
I get the right info:
Analysis of Variance Table
Response: Donnees[, k]
Df Sum Sq Mean Sq F value Pr(>F)
H1 1 1.27 1.27 1.8089 0.181942
H2 1 22.50 22.50 31.9387 1.768e-07 ***
H3 1 2229.56 2229.56 3164.7206 < 2.2e-16 ***
H4 1 626.99 626.99 889.9756 < 2.2e-16 ***
H5 1 7.50 7.50 10.6513 0.001545 **
H1:H2 1 0.01 0.01 0.0091 0.924039
H1:H3 1 0.08 0.08 0.1145 0.735859
H1:H4 1 0.06 0.06 0.0793 0.778848
etc...
BUT, in order to automate what ever the model, I would like to extract the names of the terms "H1", "H2",..."H1.H2".... to feed the function argument "names.arg" in :
barplot2(anov_TWI[,4],xlab="Co-Variables",ylab="Signifiance ",main=Title,col="green",names.arg= ???
I did not succeed even after a lot of structure conversion attempts....
Thanks a lot for any help