Create a plot with a table under the plot and both has to be share same x axis in r
I have a requirement to create a plot that has to be have a table with number of patient is attend to the test at particular visit and in main plot we have to show mean of that test.
the plot is looking like below image there should not gap between main plot and table it has shar one legend and axis properties
How do I add another set of datapoints to my scatterplot?
I have a toy dataset df
:
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.