survminer icon indicating copy to clipboard operation
survminer copied to clipboard

misalignment between the chart and the risk table in ggsurvplot

Open Monique84 opened this issue 3 months ago • 4 comments

I am observing an ugly misalignment between the chart and the risk table plotting with ggsurvplot of survminer package in R version 4.3.3 (2024-02-29 ucrt) -- "Angel Food Cake" (

https://i.stack.imgur.com/4YkaM.pngenter image description here)

I would like to display (as the code has always done until a couple of days ago) survival chart and risk table perfectly aligned so that the year notches in the two axes coincide.

Monique84 avatar Mar 16 '24 19:03 Monique84

Hi,

I have the same problem! Two months ago I used the same code and the graphic and risk table were aligned. Have you figured the problem out?

fernandocatto avatar Mar 27 '24 05:03 fernandocatto

No. Waiting for the problem to be fixed I am using another package for survival curves.

Monique84 avatar Mar 27 '24 05:03 Monique84

I have the same issue, a temporary solution is to use an older version of ggplot2 (version 3.4.3) as it seems to be the ggplot2 update which has caused the issue. remotes::install_version(package = "ggplot2", version = "3.4.3")

hemy2511 avatar Apr 08 '24 13:04 hemy2511

I saw the same issue with ggplot2 3.5.0, rollbacking to ggplot2 3.4.3 temporarily solved the problem.

Any plan to fix this issue to accommodate 3.5.0 ?

wbvguo avatar May 11 '24 22:05 wbvguo