DATA Step, Macro, Functions and more

BOXPLOTS

Accepted Solution Solved
Reply
Contributor
Posts: 38
Accepted Solution

BOXPLOTS

How make boxplots with 4 windows, ThanksCapture.PNG


Accepted Solutions
Solution
‎02-15-2018 06:50 AM
PROC Star
Posts: 1,215

Re: BOXPLOTS

proc sgpanel data=sashelp.cars;
	where Make in ("Acura", "Audi", "BMW", "Buick");
	panelby Make;
	vbox mpg_city;
run;

View solution in original post


All Replies
Solution
‎02-15-2018 06:50 AM
PROC Star
Posts: 1,215

Re: BOXPLOTS

proc sgpanel data=sashelp.cars;
	where Make in ("Acura", "Audi", "BMW", "Buick");
	panelby Make;
	vbox mpg_city;
run;
Contributor
Posts: 38

Re: BOXPLOTS

Great Thanks, i have tried  SGplot0 thats works with sgpanel Thaks again

PROC Star
Posts: 1,215

Re: BOXPLOTS

You can use the GROUP= option in the model statement to distinguish groups within each panel like this

 

proc sgpanel data=sashelp.cars;
	where Make in ("Acura", "Audi", "BMW", "Buick");
	panelby Make;
	vbox mpg_city / group=cylinders;
run;
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 146 views
  • 3 likes
  • 2 in conversation