Data visualization with SAS programming

2D boxplot panel

Reply
Regular Contributor
Posts: 201

2D boxplot panel

Hi all,

 

I have 2 columns in a dataset: X {1,2,3,4} and Y {1,2,3,4}. I would like to create a 2D panel of boxplots, potentially using code along those lines:

 

PROC SGPANEL  DATA=CARS1;
PANELBY MAKE;
  VBOX horsepower   / category = type;

   title 'Horsepower of cars by types';
RUN; 

Can I use PANELBY X Y? Ideally, the lower left corner should be coordinate X=1,X=1 and the top right corner should be X=4,Y=4. Thanks!

SAS Super FREQ
Posts: 1,047

Re: 2D boxplot panel

Posted in reply to csetzkorn

To change the starting location for the plots in the panel, use the START option on the PANELBY statement. In your case, use START=BOTTOMLEFT.

Ask a Question
Discussion stats
  • 1 reply
  • 88 views
  • 1 like
  • 2 in conversation