I have a table with the lifespan of multiple individuals from a species and would like to use this data to plot a mortality rate curve, similar to that shown in figure 1 of this study:https://www.nature.com/articles/srep36361.pdf
My data looks like this:
age in days at death
5
8
202
302
24
300
295
277
8114
195
169
257
1
7490
2938
334
7793
566
194
6698
164
1
5371
5282
0
1327
3
2301
367
177
1
286
496
8309
3074
964
10843
252
265
4256
0
0
88
3
3614
5708
8519
325
8367
Each entry is the age of an individual (in days) when it died. Could anyone point me towards a package or equation for plotting a mortality rate curve? I believe it can be quite simply done by fitting a generalised additive model (GAM)in ggplot2:
geom_smooth(method = "gam", formula = y ~s(x))
However I believe the data might first have to be transformed to show number of animals alive at different age ranges. If anyone has experience with plotting mortality/senescence curves and could advise on how this data may need to be transformed that would be most helpful.