[R] Anova

Jhope jeanwaijang at gmail.com
Fri Oct 5 10:27:55 CEST 2012


Hi R-listers, 

I am trying to do an ANOVA for the following scatterplot and received the
following error:

library(car)
scatterplot(HSuccess ~ Veg, 
            data = data.to.analyze,
            xlab = "Vegetation border (m)", 
            ylab = "Hatching success (%)")

anova(HSuccess ~ Veg, data=data.to.analyze)

Error in UseMethod("anova") : 
  no applicable method for 'anova' applied to an object of class "formula"

I am wondering if there is a better way to do this?
Please advise, Jean




--
View this message in context: http://r.789695.n4.nabble.com/Anova-tp4645130.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list