SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  Survival chart special features

    Posted Thu May 08, 2025 09:31 AM

    Hello Group,

     

    Review members rejected my SPSS 'standard' survival chart, and it does not appear satisfactory and could be improved.

     

    They advised me to redo it with R so it will look something like this:

     

     

    Does anyone know if SPSS can add the N at risk table at the bottom and the text in the chart with p., CI, and other details?

     

    Thanks!

     

              

    Meni Berger |

    Data Scientist and Head of Tech  Support

    Email  -  Meni@genius.co.il

    11 Menachem Begin st.,  Ramat Gan

    www.genius.co.il

    Click here to open a support ticket  

    Title: LinkedIn - Description: image of LinkedIn icon

     

     



  • 2.  RE: Survival chart special features

    Posted Fri May 09, 2025 06:27 AM

    Hi,

    You can probably paste the syntax that the graph command generates into a syntax window and fiddle with it for a week. The grammar of graphics can probably handle it, somehow.. It depends on how you generated the graph, however.    

    But, personally I think I would cheat and simply load the graph into adobe acrobat or something similar, and edit it. 

    Use R?  Sure, it is quite possible to do that in R, but you would  a) generate the graph, b) write commands to put the text where you want it inside the graph (sort of easy, but lots of fiddling with getting it placed in the correct place) c)  ensure that it is sufficient space in the plot area to put your table d) find out how to add the table (or write it cell by cell) e) watch the whole thing get formatted slighly inappropriately when you export it. It is probably simpler to use simple plot commands rather than ggplot2 although somebody has written a geom_table command for ggplot.  I have not tried that, though, but if it works it would change the graph placement issue. So if I did not want to waste a lot of time figuring out how to do it in R, I would probably go the same way in R as with SPSS: produce the bare bones plot, then edit it.

    I guess your reviewers are not big fans of Tufte.

    Best,

    Jon 



    ------------------------------
    Jon Pedersen
    ------------------------------



  • 3.  RE: Survival chart special features

    Posted Sun May 11, 2025 05:44 AM

    Thank you for your input.
     

    I suspected there's no shortcut for such a complex diagram, nonetheless, I thought I might try it and see if anyone has a clever solution. 

    Loved the reference to Tufte.



    ------------------------------
    Meni Berger
    ------------------------------