Relative Content

Tag Archive for rggplot2scatter-plot

Geom_line of predicted count averaged by season

I am currently writing an update of an article on vulture population trends (Vulture article and looking at regular feeding at four long-term vulture restaurant sites from July 2016 to December 2023. At each feeding event, we are recorded the total number of vultures feeding for each of the three species (RHV, SBV, WRV). For each species we fit a set of generalized linear models. For the regular restaurant data, we modelled count at each site as a function of either a linear or quadratic effect of date, and fixed effects of site and season, and interactions among them. Season was a two-level factor of the six months with either the highest or lowest average rainfall in our study area, with “wet” from May to October, and “dry” from November to April. At vulture restaurants, for all species, the counts of birds were best modelled date2 × site × season. I would therefore like to represent the data the same way as the article (Figure 3) on a scatterplot: the expected counts for each species, the 95% confidence interval, and the actual restaurant counts at each site are shown in Figure 3, averaged by season. I managed to go the plots by site but I am having a issue with line for the predicted count averaged by season.