BookmarkSubscribeRSS Feed
chinaski
Obsidian | Level 7

How to auto-fix ranges in histogram using Proc Univariate, when you have more than one graph its ranges set automatically to same numbers. All i want that it fixes the ranges of graphs separetely, if i call where statement and call one graph no problem but i have lots of graphs i don't want to filter them one by one.

A brief short answer ins very much appreciated, my google searches drived me crazy.

1 REPLY 1
ballardw
Super User

Autofix range of what? The max/min value used to make the graph? The max/min value displayed on the graph? The "width" or number of records represented by each bar?

 

You will likely have better luck with Proc SGplot or SGPanel and that histogram plot than Proc Univariate. The graphs in Univariate are intended for data exploration and do not have all the options for controlling appearance.

 

You might get univariate to come closer to what you want by restructuring your data so that you have a single variable with values and make your current variable name another value to use on a BY statement.  Maybe. Your data just may not allow univariate to behave as you want.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 658 views
  • 0 likes
  • 2 in conversation