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.
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.