BookmarkSubscribeRSS Feed
dmfang84
Calcite | Level 5

I tried to plot 2 rows and 5 columns of figures with proc template (datalattice). However, the problem is that the xaxis of the two rows have different ranges, so that the figures with smaller xaxis range  can not be clear displayed. Is there any solution to fix the prolem? Thank you very much!

SGRender9.png
3 REPLIES 3
DanH_sas
SAS Super FREQ

On the LAYOUT LATTICE statement, specify COLUMNDATARANGE=UNIONALL, which will union the axes across all columns. You can do the same for rows (ROWDATARANGE=UNIONALL).

 

Hope this helps!

Dan

dmfang84
Calcite | Level 5

Thank you. But it can not fix the problem. The first row ranges from 0 to 50, but the second row ranges from 0 to 1. 

DanH_sas
SAS Super FREQ

If your rows are different scales, you'll only want to specify COLUMNDATARANGE=UNIONALL so that all of your X axes are unioned (not the Y). If you're still having issues, I'll need to see a picture to help you further.

 

Thanks!

Dan

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 3 replies
  • 1369 views
  • 0 likes
  • 2 in conversation