I'm trying to draw a vertical timeline using vistime with its ggplot plotting option. My main intention is to better integrate it with text, side by side. This is the code:
library("vistime")
library("plotly")
data <- read.csv("../../data/programming.csv")
g <- gg_vistime(data, col.event="Item", col.start="Start.Date", col.end="End.Date", col.group="Group")
g + theme(axis.text.x = element_text(angle=90, color='blue4',size=14) )+coord_flip()
As you can see, as I'm doing the coord_flip, the labels intersect with each other. I'd like to make the labels go vertical. This is code that draws them:
So that means that it's a geom_text sentence. Is there some way to change the orientation of geom_text-drawn text once it's done? Can I use some theme command to do that? Barring that, is there any way I can change the placement of the labels using vistime?

You can deconstruct any
ggplot2visualization with (surprisingly)ggplot_build(actually, what it does is to create elements that can be rendered using the plain vanillaplot).That creates a data frame with different elements of the plot, including
g.d$datawhich contains, effectively, the data and its properties when rendered in its 4th element.g.d$data[[4]]$anglecontains the angle of all thegeom_textelements that have been rendered. So once you get that, it's just a matter of changing it individually or colectively to what you want. You need to reconstruct the plot usingggplot_gtableand then use the coreplotcommand to plot and render it any way you want, in this case apng.At any rate,
ggplot_buildallows you to introspect the data structures and different pieces of the graph created using ggplot, changing any one of its layers, metadata or pieces after they have been created. In our case, it produces the intended effect