Report 2
Data
In the report, we will use a modified version of the msleep
dataset from ggplot2 (Wickham 2016). Updated sleep times and weights were taken from Savage and West (2007). See Table 1 for a codebook.
msleep
dataset
Column | Type | Definition |
---|---|---|
name | character | common name |
genus | character | scientific genus |
vore | factor | type of diet |
order | factor | scientific order |
conservation | factor | the conservation status of the animal |
sleep_total | numeric | total amount of sleep, in hours |
sleep_rem | numeric | rem sleep, in hours |
sleep_cycle | numeric | length of sleep cycle, in hours |
awake | numeric | amount of time spent awake, in hours |
brainwt | numeric | brain weight in kilograms |
bodywt | numeric | body weight in kilograms |
Plots
Brain:Body Weight
As the brain:body weight ratio increases, so do total sleep hours (Figure 1).
Diet
There is not a clear relationship between sleep and diet (Figure 2).
Sleep by Order
Animals in different orders have very different median total amounts of sleep (Table 2).
Order | Median Total Sleep |
---|---|
Rodentia | 12.9 |
Carnivora | 10.2 |
Primates | 9.9 |
Brain:Body Weight by Diet
As the brain:body weight ratio increases, so do total sleep hours for carnivores and omnivores, but not for the other diet types (Figure 3).
References
Savage, Van M, and Geoffrey B West. 2007. “A Quantitative, Theoretical Framework for Understanding Mammalian Sleep.” Proceedings of the National Academy of Sciences 104 (3): 1051–56.
Wickham, Hadley. 2016. Ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org.