I want to change the font on the inside of a vistime object, but it happens to only change the axis font.
library(vistime)
dat <- data.frame(event = 1:4, start = c("2019-01-01", "2019-01-10"))
p <- gg_vistime(dat) +
theme(text = element_text(family = "serif"))
p


I found a solution for
ggplot.There seems to be no way but to access the
aes_params. Depending on the number of layers/data in the plot, the part that needs to be changed is different (a good way to find the correct one is to change the size of all layers (start with one 1 as in the example and go up toN) and look at the plot every timep$layers[[1]]$aes_params$size <- 20). In the example, the text is in layer5. The familyaesis not present but can easily be added.Inspired by this post: Is there a way to change marker size and label font size in an R gg_vistime timeline?