BookmarkSubscribeRSS Feed
ayanlola2002
Calcite | Level 5

i created an sgplot graph on saving into microsoft word it was not very appealing 

 

how can i create better plots that are clearer and are appealing for international publications with sas

 

then the y axis needs to be show in the real value instead of exponential values 

 

any help please?

 

 

7 REPLIES 7
Norman21
Lapis Lazuli | Level 10

For graphical output, I prefer PDF, as the image produced is SVG (scalable vector graphics), which appears clear even at high magnification.

 

More information can be found here:

 

https://blogs.sas.com/content/sgf/2015/05/20/ods-pdf-destination-in-sas-9-4-come-take-a-look-under-t...

 

You can also generate stand-alone SVG files in HTML5:

 

https://documentation.sas.com/?docsetId=graphref&docsetTarget=n13mzowurmt2kmn11hpaz16h5z1q.htm&docse...

Norman.
SAS 9.4 (TS1M6) X64_10PRO WIN 10.0.17763 Workstation

Ksharp
Super User

Enhance the DPI ?

 

ods listing image_dpi=300 ;

data_null__
Jade | Level 19

Looks like image is EMF

 

98\pichgoal7202\emfblip\bliptag1946676028{

I have never seen an EMF look "right" when rendered in MSWORD. 

 

 

If you convert SAVEAS PDF the image may look better.

DanH_sas
SAS Super FREQ

As @data_null__ said, the default output for RTF is EMF. Another options is to set the OUTPUTFMT to PNG. The default image DPI is 200 for RTF, but you might want to increase it to 300. Here is some sample code:

 

ods rtf file="whatever.rtf" image_dpi=300;

ods graphics / outputfmt=png;

/* your code */

ods rtf close;

 

Hope this helps!

Dan

ballardw
Super User

@ayanlola2002 wrote:

i created an sgplot graph on saving into microsoft word it was not very appealing 

 

how can i create better plots that are clearer and are appealing for international publications with sas

 

then the y axis needs to be show in the real value instead of exponential values 

 

any help please?

 

 


Show the code used to generate the output as a minimum. From ODS destination to close plus any ODS OPTIONS statements in effect. Also, it may help to include the version of SAS you are using.

 

I have generated literally 1000's of graphs in RTF documents and have not had any of the recipients complain of image quality though I likely wouldn't use RTF for publications.

ayanlola2002
Calcite | Level 5

@ballardw here is the code i used

 

and i used SAS University Edition 

 

 

PROC CONTENTS DATA=WORK.IMPORT2; RUN;
proc sgplot data=WORK.IMPORT2;
series x=Date y=sales;
format Date Monyy.;
xaxis values=('1jan14'd to '1dec14'd by month );
run;
quit;

 

 

PROC CONTENTS DATA=WORK.IMPORT2; RUN;
proc sgplot data=WORK.IMPORT2;
series x=Date y=sales / markers;
format Date Monyy.;
xaxis values=('1jan15'd to '1dec15'd by month );
run;
quit;

ballardw
Super User

@ayanlola2002 wrote:

@ballardw here is the code i used

 

and i used SAS University Edition 

 

 

PROC CONTENTS DATA=WORK.IMPORT2; RUN;
proc sgplot data=WORK.IMPORT2;
series x=Date y=sales;
format Date Monyy.;
xaxis values=('1jan14'd to '1dec14'd by month );
run;
quit;

 

 

PROC CONTENTS DATA=WORK.IMPORT2; RUN;
proc sgplot data=WORK.IMPORT2;
series x=Date y=sales / markers;
format Date Monyy.;
xaxis values=('1jan15'd to '1dec15'd by month );
run;
quit;


Missing the ODS destination options and the ODS GRAPHICS options in effect.

If you aren't sending the graphic procedures to an ODS destination via ODS PDF, ODS RTF or ODS HTML then how are you getting the graphs into a document? Copy any paste has a number of issues such as the image size may be smaller than in the document and resizing will make things "blurry" because you stretch them and the DPI effectively goes down.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1984 views
  • 0 likes
  • 6 in conversation