BookmarkSubscribeRSS Feed
BobHope
Quartz | Level 8

Hi,

Is it somehow possible to maintain the "imagemap" feature into RTF output with proc sgplot? I know that word itself is not the limiting factor here since it works with proc gchart (only the graphs are ancient...).

1 REPLY 1
Cynthia_sas
SAS Super FREQ

HI,

  Can you explain what you mean by "imagemap" feature? It doesn't matter whether you use PROC GCHART or PROC SGPLOT. When the destination is RTF, all the images are converted to internal RTF images. If you run this code, you should see that all the images are internal to the RTF file. To see this, you have to open the RTF file with Notepad and look for the {\*\shppict{\pict\emfblip sections. If you run the code below and open the resulting RTF file with Notepad, you will see 2 \shppict sections -- one for each graphic image. Starting with SAS 9.2, for both procedures, the style template in use determines most of the image characteristics. However, changes to each image can be made with the appropriate methods. You can always change the style template. Also, PROC SGPLOT uses either internal statement-level syntax for making color/font/etc changes or the ODS GRAPHICS statement and PROC GCHART uses internal statement-level syntax and the GOPTIONS statement.

Cynthia

      

ods _all_ close;

ods rtf file='c:\temp\two_images.rtf';

proc sgplot data=sashelp.class;

title '1) SGPLOT';

  vbar age / response=height stat=mean group=age;

run;

 

proc gchart data=sashelp.class;

title '2) GCHART';

  vbar age / discrete sumvar=height type=mean  patternid=midpoint ;

run;

quit;

ods rtf close;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 1 reply
  • 1095 views
  • 0 likes
  • 2 in conversation