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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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