library(damr)
library(dplyr)
library(lubridate)
library(ggetho)
library(ggplot2)
library(sleepr)
library(zeitgebr)
metadata_test <- data.table(id=sprintf("toy_experiment|%02d" , 1:40), region_id=1:40,
condition=c("A","B"),
sex=c("M","M", "F", "F"))
dt <- toy_activity_data(metadata_test, seed=107)
ggetho(dt, aes(x=t, y=moving, colour=sex)) + stat_pop_etho()#this command works fine
ggetho(dt, aes(x=t, y=moving), time_wrap = hours(24)) + stat_pop_etho()
Error: Incompatible classes: <numeric> %% <Period>
As this is happening with the toy example, I assume it is something to do with other packages perhaps lubridate?