I'm trying to run a simple t.test on a dataset counting the decision a beetle made between two options. I.E. a beetle walked toward or away from it's host tree. Is there a way to use stat_compare_means on count data in ggplot?
ggplot(dat %>% na.omit(), aes(x=choice)) +
geom_bar() +
stat_compare_means()
