0

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

stefan
  • 90,330
  • 6
  • 25
  • 51
  • Could you provide a minimal reproducible example? [see here](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610#5963610) – TarJae Nov 21 '22 at 11:15

0 Answers0