shosaco / vistime

Pretty timelines in R.
https://shosaco.github.io/vistime
GNU General Public License v3.0
168 stars 11 forks source link

Changing event label text size with gg_timevis #25

Closed bmait101 closed 1 year ago

bmait101 commented 3 years ago

From reading old issues and combing the functions, am I correct that there is no way to change the text size of the labels for events inside the boxes? This is doable usable the plotly version, but not gg version... Any help much appreciated.

shosaco commented 1 year ago

Hi @bmait101

correct! Tried with

library(ggplot2)
library(vistime)

timeline_data <- data.frame(event = c("Event 1", "Event 2"),
                            start = c("2020-06-06", "2020-10-01"), 
                            end   = c("2020-10-01", "2020-12-31"),
                            group = "My Events")

p <- gg_vistime(timeline_data) 
str(p)

but didn't find a solution to manipulate the p object in a proper way to change event text size.

best regards sandro

gmhhope commented 8 months ago

That is such a pity! Please see if there is anything you guys can hlep with this. WIthout the function the change text size, it is not that useful with ggvistime than plotly version. However, I do want to have vector-based image from ggvistime. So embarassed!