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...).
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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.