Data visualization with SAS programming

I would like to edit figures created by SAS sgplot with MS VIsio

Reply
Highlighted
New Contributor
Posts: 3

I would like to edit figures created by SAS sgplot with MS VIsio

If I create a figure using a SAS graph procedure I am able to edit that figure by right clicking on the figure from the results window.  Once in the editor I can select the figure and copy it.  Then I can open MS VISIO and paste it into a new figure screen as Picture (Enhanced Metafile) which I can then ungroup it so that I can edit all the components of the figure.  I need to do this to insert and edit elements of the figure.  Also no matter how large I make the figure it still retains the detail of the original.  In using the Sgplot routine I can only get a snapshot picture that cannot be edited in this way.

 

Is it possible to have sgplot produce an enhanced metafile that I can ungroup and edit in MS Visio?

 

Thanks  Joe

 

PS since these actions are interactive I don't think my code would be helpful.

Super User
Super User
Posts: 9,840

Re: I would like to edit figures created by SAS sgplot with MS VIsio

So the nub of the question here is that you want to create emf files?  If so:

http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#n030hgajs8pdqln1vwp5...

 

Although why you would want to be manually editing a graph after generation is beyond me.  You can do all kinds of manipulations, layers, boxes etc. with the graph procedure, and then you only need to run it.  If you need examples use this blog which has code examples for thousands of graphs:

http://blogs.sas.com/content/graphicallyspeaking/

New Contributor
Posts: 3

Re: I would like to edit figures created by SAS sgplot with MS VIsio

Thanks, I was able to use the OUTPUTFMT=svg  to generate files that I could edit in Visio (with some work).  

I was also wondering if you knew how I could set up sgplot with the heatmap option to generate the map in shades of grey so that I may use the results in a publication?

Thanks again,  Joe

SAS Super FREQ
Posts: 1,123

Re: I would like to edit figures created by SAS sgplot with MS VIsio

You can use the JOURNAL style to do it:

 

ods html5 style=journal;

 

or use the COLORMODEL=() option to set two or more gray shades for the continuous shading.

SAS Super FREQ
Posts: 1,289

Re: I would like to edit figures created by SAS sgplot with MS VIsio

As suggested by RW9, you can customize a graph using SGPLOT, and also use annotation if needed.  Additionally, you can create an SGE file (add SGE=on to the destination) and then open the graph in the SGEditor for editing.

Ask a Question
Discussion stats
  • 4 replies
  • 131 views
  • 0 likes
  • 4 in conversation