Closed jabenninghoff closed 1 year ago
Modifying a gg_vistime object with a ggplot2::scale_color function unexpectedly changes the text color and adds a legend.
gg_vistime
ggplot2::scale_color
Reproducible example below. This chart should look like the vistime example but does not.
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") gg_vistime(timeline_data) + scale_color_discrete()
I accept that as a current limitation of the package. Changing the theme afterwards has unwanted side effects :-/
Modifying a
gg_vistime
object with aggplot2::scale_color
function unexpectedly changes the text color and adds a legend.Reproducible example below. This chart should look like the vistime example but does not.