'Is it possible (how) to have different line widths for different groups in ggsurvplot figure in R?

I want to change the line width for different groups plotted in the same figure using ggsurvplot. Something like this:

    plot = ggsurvplot(curve_fitted_open,
                  fun = 'event',
                  conf.int = FALSE,
                  xlim = c(0, 365),
                  ylim = c(0, 1),
                  linetype = c('solid', 'dashed'),
                  size=c(1, 0.5))

I.e. I would like to set the line width (see the last line in the example) in a similar ways as the line type but this does not seems to work. Is there another way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source