BookmarkSubscribeRSS Feed
brown_rx
Calcite | Level 5

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
2 REPLIES 2
Reeza
Super User

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. 

Jay54
Meteorite | Level 14

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2046 views
  • 0 likes
  • 3 in conversation