BookmarkSubscribeRSS Feed
brophymj
Quartz | Level 8

Just a couple of questions regarding a graph I am trying to produce for regular reporting purposes...

The code works perfectly and I just now want to put the finishing touches on the slides to make them look more appealing.

Here is part of my code. The code exports graphs to pngs and then I import them into powerpoint (4 graphs per slide). The look ok but I want them to look better if possible.

  • Firstly what's the best way to maximize the clarity of the pictures? I don't mind of the output files are larger. Graphs in excel look clearer and I wanted to get as close as possible to them.
  • Secondly, can you change the color of the bar or line chart - I want to make it more striking.
  • How do you change the names of the axis so they don't include (sum)

Many thanks

  ods listing gpath="path...";

  ods pdf file="path.\graph.pdf" columns=2 style=meadow startpage=no;

  ods graphics on/width=4.5in height=3.75in;

  proc sgplot data=Egidwh_oneway4 ( where = (factor = "Age"));

     title "Age - LR";

     vbar level / response=exposure;

     vline level / response=LR y2axis;

  run;

  ods graphics off;

  ods pdf close;

1 REPLY 1
DanH_sas
SAS Super FREQ

What version of SAS are you using?

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

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
  • 1 reply
  • 1126 views
  • 0 likes
  • 2 in conversation