我想在制作ggplot2之前支持转换我的数据(来自log10),但是不知道如何在dfresids中调整它:
>data=read.csv("Observation Data 2014_sorted_stacked.csv")
data$TREATMENT=relevel(data$TREATMENT,ref="CONTROL")
>fit_a=lm(log10(TOTAL+1)~COLONY+TREATMENT*poly(DAY_SINCE_TREATMENT,2)+TIME_ORD+WEATHER,data=data)
>eff_a=Effect(mod=fit_a,focal.predictors=c("DAY_SINCE_TREATMENT","TREATMENT"),partial.residuals=TRUE)
>dfeff=data.frame(eff_a)
dfresids=data.frame(resids=exp(predict(fit_a,type="response")+eff_a$residuals),
eff_a$x.all)
>ggplot ??
`