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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 644 views
  • 0 likes
  • 2 in conversation