这是我的代码:
#Data initialisation
data <- is.data.frame(resultats15)
genotype <- data$genotype
aire <- data$aire
#ANOVA et Tukey test
library(TukeyC)
resaov <- aov(aire~genotype)
anova(resaov)
TukeyC(resaov)
library(multcompView)
multcompBoxplot(aire~genotype, data, horizontal = FALSE)
#Error in data[, fm[-1]] : incorrect number of dimensions
以前,我尝试过这样的事情:
#Data initialisation
data <- resultats15
genotype <- data$genotype
aire <- data$aire
#ANOVA et Tukey test
library(TukeyC)
resaov <- aov(aire~genotype)
anova(resaov)
TukeyC(resaov)
library(multcompView)
multcompBoxplot(aire~genotype, data, horizontal = FALSE)
#Error in tapply(data[, fm[2]], data[, fm[3]], function(x) do.call(sortFn, :
arguments must have same length
length(aire)
#1600
length(genotype)
#1600
我想使用TukeyHSD方法获得多比较的箱线图。 我不明白这个问题&#34;维数&#34;你能帮助我吗?