BookmarkSubscribeRSS Feed
jacksonan123
Lapis Lazuli | Level 10

I have prepared some TIFF graphs which I would like to combine on the same page.  The attached code presented on this site  works well for a *.pdf output.  For base SAS there is a greplay macro that allows  one to combine graphs.  Does any one know if graphs can be combined in SAS UE other than as *.PDF format?   If they do can they indicate a posted example?

* close all open ODS destinations ;
ods _all_ close;

* set papersize etc. for PDF ;
options papersize="ISO A4" orientation=portrait;

* open PDF destination 
* the &_SASWS_ macro var is pointing to your "MyFolders" location
*;
ods pdf file="/folders/myfolders/CmaxRIT/sample2.PDF";

* set size of graphics ;
ods graphics / width=8cm height=6cm;

* start gridded layout with two columns ;
ods layout gridded columns=2 ;

* generate output for first region ;
ods region;
7 REPLIES 7
Reeza
Super User
If you're using SAS Academics on Demand, it supports GREPLAY. It's free as well, with the same restrictions as UE so if you're within the appropriate usage you should be fine.
jacksonan123
Lapis Lazuli | Level 10
To your knowledge does SAS UE support Greplay?
Reeza
Super User

I think GREPLAY is part of SAS/GRAPH which isn't included in SAS UE. SGPLOT is the 'new' way of doing things, whereas SAS/GRAPH is pretty old and not really high quality graphics to be honest. I'm assuming that's why they didn't include it in SAS UE. 

 

I also just recalled you can make your own graph template using GTL. It's definitely not simple but would give you pretty detailed control over what you want and would likely come out as a single image. 

 


@jacksonan123 wrote:
To your knowledge does SAS UE support Greplay?

 

jacksonan123
Lapis Lazuli | Level 10
I will give GTL a try tomorrow, but I have decided the whole matter would be
much simpler in R if this fails.
Reeza
Super User
Yeah, GTL and R are pretty much equivalent in the type and amount of code, but obviously what you know is easier.
jacksonan123
Lapis Lazuli | Level 10
I decided to use ggplot in R and it worked well.
ballardw
Super User

@jacksonan123 wrote:

I have prepared some TIFF graphs which I would like to combine on the same page.  The attached code presented on this site  works well for a *.pdf output.  For base SAS there is a greplay macro that allows  one to combine graphs.  Does any one know if graphs can be combined in SAS UE other than as *.PDF format?   If they do can they indicate a posted example?


Perhaps Proc Sgpanel?

 

A pretty vague question. What ODS destination are you using that is not PDF? HTML and similar do not actually have a "page" concept.

Currently none of the other ODS destinations I am familiar with have any of the "layout" options that PDF does.

 

How big are the individual images? What size is the destination "page"?

 

FWIW Greplay requires lots of playing around with text and marker sizes and paying attention to height to width ratios in creation and the replay because everything gets rescaled to fit into the replay display area.

 

 

sas-innovate-white.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.

 

Early bird rate extended! Save $200 when you sign up by March 31.

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
  • 7 replies
  • 1617 views
  • 1 like
  • 3 in conversation