Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
hkap
Calcite | Level 5

Hello,

I am producing SAS ODS figures in RTF that look fine within my group. When I send to others, they cannot see the x-axis labels.  Anyone know why this might happen?  

 

Here's the program.  I can see everything fine, the x-axis and all the labels and ticks. But when I send out to others, they cannot.  The y-axis does not seem to have any issues.  Note, they can see the legend and the footnotes under the x-axis.

 

 

 

options orientation=landscape nodate nonumber;

options leftmargin= 1in rightmargin = 1in topmargin = 0.5in bottommargin = 0.5in;

 

ods _all_ close;

ods rtf file = "&outdir\&shrtname..rtf" nogtitle nogfootnote;

 

goptions reset=goptions device=png300 gsfname = graphout;

 

 

ods graphics / width=1200 height=900 noborder ;

 

proc sgplot data=ds2  ;

scatter x=avisitn y=pchg /  group=subjid 

name="scat";

series x=avisitn y=pchg / group=subjid grouplp=&grp.

lineattrs=(pattern=solid thickness=1);

 

keylegend  /title = "&titl."  type=&type. sortorder = ascending;

 

 

xaxis type=linear label="Visit Day"    min =10 max = 70 values=(10 30 40 70)  valueshint valuesformat = figfmt.;

 

yaxis label=&ylabel values=(&ymin to &ymax by &yby);

 

refline &refline. / axis =y lineattrs=(pattern = dash thickness = 1) ;

 

run;

ods rtf close;

 

 

1 REPLY 1
ballardw
Super User

Are you sharing the RTF file or converting to DOCX or other format?

 

Does your figfmt. include any style elements such as font appearance?

 

Either of these might have issues related to display of RTF graphics.

 

Providing dummy data that we could graph plus definition of the format and values of macro variables used might allow more specific answers.

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


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
  • 482 views
  • 0 likes
  • 2 in conversation