The SAS Output Delivery System and reporting techniques

PROC SGPLOT Imagemap on within ODF RTF

Reply
Contributor
Posts: 60

PROC SGPLOT Imagemap on within ODF RTF

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...).

SAS Super FREQ
Posts: 8,820

Re: PROC SGPLOT Imagemap on within ODF RTF

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;

Ask a Question
Discussion stats
  • 1 reply
  • 514 views
  • 0 likes
  • 2 in conversation