Data visualization with SAS programming

Editing ODS Graphics

Reply
Occasional Contributor
Posts: 9

Editing ODS Graphics

So, I am trying to analyze ordinal data for a virus study, wheat streak mosaic virus (WSMV). The ordinal severity scores ranged from 1 (no viral symptoms) to 5 (severe chlorosis/death). Two cultivars/varieties were inoculated with three MSMV isolates. The following SAS code was used:

 

Proc Logistic descending data = DAL4 Plots = All;
Class GH Rep Cultivar Inoculum PR;
Model ViralScore = Cultivar | Inoculum / rsquare CLodds = PL;
oddsratio Cultivar;
oddsratio Inoculum / at (Cultivar = All);
Run;

 

There are some cool ODS graphs in the output that I would like to include in a report. However, the fonts are too small. Is there a way that I can change the font sizes and re-position the legends on the graphs?

Yours logistic novice!

 

 

Occasional Contributor
Posts: 9

Re: Editing ODS Graphics

Posted in reply to WarrenKuhfeld

Thanks for your response Warren, I was looking more at editing the already produced figures than coding or re-coding. Is no way to edit an already produced figure in SAS 9.4?

SAS Super FREQ
Posts: 1,046

Re: Editing ODS Graphics

You can use the ODS Graphics Editor to do it. Check out this paper from Sanjay for more details: http://www2.sas.com/proceedings/forum2008/235-2008.pdf

 

SAS Super FREQ
Posts: 496

Re: Editing ODS Graphics

Of course @DanH_sas is correct.  Remember though, if you always want the same kinds of changes, you can make them once in the templates, or you can make them every time using the graph editor.  Both are extremely useful.

Occasional Contributor
Posts: 9

Re: Editing ODS Graphics

Posted in reply to WarrenKuhfeld

Hi Warren,

Thanks for the links. I will use those to learn a little bit more. I usually get these graphics in my proc glimmix, mixed and glm's LASSO and such. Knowing how to edit those and make them a little bit more presentable would be awesome.

Thanks again!

Occasional Contributor
Posts: 9

Re: Editing ODS Graphics

Hello Dan,

This worked for what I needed to achieve. Although I could not change the fonts for both axes individually this approach was pretty good. I have always appreciated SAS for its versatility as a statistical tool. Not so much for auto-generated graphics resolution. I presume studio generates better graphics/figures?

Thanks again.

Ask a Question
Discussion stats
  • 6 replies
  • 109 views
  • 2 likes
  • 3 in conversation