BookmarkSubscribeRSS Feed
Jamun
Calcite | Level 5

Hello everyone,,

 I am trying to increase the resolution of the line graph produced to 600dpi. I am not sure where i am making mistakes in my code- The resolution is still 96 dpi.

 

ods rtf file='C:\Users\khetap03\Desktop\Lillirecent\boxplotcreatinine.rtf'image_dpi=600;

ods listing style=listing;

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

goptions reset=all;

symbol1 c=blue v=star h=.8 i=j;

symbol2 c=red v=dot h=.8 i=j;

symbol3 c=green v=square h=.8 i=j;

axis1 order=(50 to 100 by 5) label=( 'Means');

axis2 value=(10 to 100 by 10) label=('Time');

proc gplot data=means1;

  plot estimate*time=obesity / vaxis=axis1 haxis=axis2;

run;

quit;

ods rtf close;

 

Thank you very much in advance.

4 REPLIES 4
ballardw
Super User

Try moving to SGPLOT instead of GPLOT. The older device based graphic procedures from SAS/Graph don't always play well with ODS Options because they don't really provide "native" ods output.

PGStats
Opal | Level 21

Something like:

 

ods rtf file='C:\Users\khetap03\Desktop\Lillirecent\boxplotcreatinine.rtf' image_dpi=600;
ods graphics / width=4.5in  height=3.5in;

proc sgplot data=means1;
styleattrs 
    DATACONTRASTCOLORS=(blue red green) 
    DATASYMBOLS=(star circlefilled square);
series x=time y=estimate / group=obesity markers;
yaxis label="Means";
xaxis label="Time";
run;

ods rtf close;

(untested)

PG
Ksharp
Super User

Try PROC SGPLOT .

 

ods rtf file='C:\Users\khetap03\Desktop\Lillirecent\boxplotcreatinine.rtf'   dpi=600;

ods listing style=listing  image_dpi=600 ;

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

PROC SGPLOT ..........

ChrisNZ
Tourmaline | Level 20

You can use

 

goptions xpixels=2500 ypixels=2000 ;

 

with SAS/Graph.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 426 views
  • 4 likes
  • 5 in conversation