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?
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:
You can also generate stand-alone SVG files in HTML5:
Enhance the DPI ?
ods listing image_dpi=300 ;
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.
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
@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.
@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;
@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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.