Data visualization with SAS programming

Modifying PROC LIFETEST output graphics resolution

Reply
New Contributor
Posts: 2

Modifying PROC LIFETEST output graphics resolution

I'm using base settings for ODS HTML output and PROC LIFETEST to produce KM survival curves with colored areas for 95% CIs (all base settings). I'd like a similar output but I require a better resolution than what is being given using base settings. How can I get at least DPI>=300 and produce a similar graphic? I'm using SAS 9.4 and I'm certainly not married to ODS HTML output. I just don't know any better.



TTE Major bleed warfarin.png
Super User
Posts: 19,156

Re: Modifying PROC LIFETEST output graphics resolution

SAS/STAT(R) 9.2 User's Guide, Second Edition

You can modify your resolution via ODS GRAPHIC height/width or ODS HTML image_dpi option.

According to the docs though, you should be getting an SVG via HTML so I would have assumed that would be high quality. 

SAS Super FREQ
Posts: 1,141

Re: Modifying PROC LIFETEST output graphics resolution

The default destination is HTML with DPI=96.  The graphs themselves are saved in the Temp folder.  If you want the graphs accessible at a higher resolution, you can turn on LISTING destination, and set Image_dpi=200 or 300.  If you use PDF destination, you will get scalable output at 150 dpi, which can be increased.  This output is scalable, so the graph in the PDF doc (especially the printed version) should look nice.

Ask a Question
Discussion stats
  • 2 replies
  • 395 views
  • 0 likes
  • 3 in conversation