What r function can I use to compare count data across groups?

Viewed 25

I've conducted an experiment using seeds from several locations to test their viability. For each location, seeds were classed as viable or non-viable, giving me the total amount of viable and non-viable seeds for each location as my dataset. Now I would like to compare the locations to see if there is any significant difference in the viability between them, but I am getting stuck on which function or model (eg binomial model, glm etc) to use and how I might plot these results. Any help would be appreciated!

location viable non-viable
1 55 35
2 66 24
3 67 23
4 59 31
5 37 53
0 Answers
Related