BookmarkSubscribeRSS Feed
deleted_user
Not applicable
hello
i have a question, when i submit this following code, the output is fine but the 4 graphics have the same axis, and theses common axis are too biggers because there is an outlier ( see my code)

data class;
set sashelp.class;
if mod(_n_,2)>0 then flag=1; else flag=0;
if _n_=1 then height=250; /* creation of an outlier */
run;

ods rtf file="blalalal\sgpanel.rtf";
proc sgpanel data=class CYCLEATTRS;
title "test outlier";
panelby flag sex;
histogram height / name="matcat";
density height;
run;
ods rtf close;


is there an option to have only the big axis for the graphics with an outlier
(flag=1 and sex=M) and correct axis for the 3 others graphics ?
thank you and have a nice day.
1 REPLY 1
DanH_sas
SAS Super FREQ
Yes, there is. On your PANELBY statement, specify these two options:

panelby flag sex / uniscale=row columns=4;

The UNISCALE option make only the ROW axes uniform, allowing the column axes to vary independently. By setting COLUMNS=4, ech column axis is only getting on histogram. that way, the "outlier" histogram does not have any affect on the other histograms.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1099 views
  • 0 likes
  • 2 in conversation