Extra Plots

Quantify day and night

Often you'll want to compare a variable between the day and night, particularly total sleep. This variation of plot_quantify() will plot the mean and 96% CI of a variable for a user defined day and night.

# Quantify parameters are near identical to .plot_quantify() with the addtion of day_length and lights_off which takes (in hours) how long the day is for the specimen (defaults 24) and at what point within that day the lights turn off (night, defaults 12)

df.plot_day_night(
variable = 'asleep',
facet_col = 'species', 
facet_arg = ['D.vir', 'D.ere', 'D.wil', 'D.sec', 'D.yak'],
facet_labels = ['D.virilis', 'D.erecta', 'D.willistoni', 'D.sechellia', 'D.yakuba'],
day_length = 24,
lights_off = 12
)
Quantification of the Drosophila species sleep from day to night

Compare variables

You may sometimes want to compare different but similar variables from your experiment, often comparing them across different experimental groups. Use plot_compare_variables() to compare up to 24 different variables (we run out of colours after that...).

Last updated