In a classic Nature communication, Partridge and Farquhar argued that there is a physiological cost of reproduction, which is in line with many evolutionary theories. At that time, this cost had been shown experimentally for females, but no cost for sexual activity had been shown for males in which the only paternal contribution to offspring is provision of gametes.
To explore whether there is any effect of sexual activity on lifespan, researchers randomized male fruit flies to one of two groups: an isolated population of males (no sexual activity), or a mixed-gender population in which the male fruit flies were sexually active. Because body size has also been linked to longevity, we consider it here (measured by thorax length) as well. The data are in the file fruitfly_thorax_len.csv, which contains lifespan, thorax length, and randomization group for male fruit flies in the experiment.
First, we visualize the lifespan of the male fruit flies as a function of body size and sexual activity.
buzzkiller=read_csv("fruitfly_thorax_len.csv")
## Rows: 50 Columns: 3── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (2): thorax, sexually_active
## dbl (1): longevity
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
#reorder factors
buzzkiller$thorax <- factor(buzzkiller$thorax,
levels = c("short",
"long"))
ggplot(buzzkiller,
aes(x = sexually_active, y = longevity, color = thorax)) +
stat_summary(fun.y = mean,
geom = "point",
shape = 5,
size = 4,
position = position_dodge(0.5)) +
geom_jitter(position = position_dodge(0.5), alpha = 0.3) +
scale_color_manual(values=c("black", "dodgerblue3")) +
xlab("Sexual Activity") +
ylab("Longevity (days)")
## Warning: `fun.y` is deprecated. Use `fun` instead.
Prepare a written report describing the association between sexual activity, body size, and longevity in male fruit flies. Your report should include the following.
This report is due by the beginning of class on Wednesday via upload to Sakai. The minimum font size is 11 point and maximum number of pages is 3.