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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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

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