I need to change the placement of the text that defines the linetypes of the groups and the colors of the event in ggcompeting risk plot.
ggcompetingrisks(
fit = fit_cif,
xlab = "Time since diagnosis (years)",
ylab = "Cumulative incidence (%)") +
scale_linetype_manual(name = "Parental education", values c(1, 2, 3), labels = c("Long", "Medium", "Short")) +
scale_color_manual(name = "Event", c("Black", "Grey") labels = c ("Death of cancer", "Death of non-cancer"))
Now event comes first and under event parental education is shown. How do i switch the placement so that parental education comes first, and event is placed under?
Hope you can help me.
Regards Fie