Data visualization with SAS programming

Re: Boxplot for different treatments

Reply
Frequent Contributor
Frequent Contributor
Posts: 81

Re: Boxplot for different treatments

Thank you for help! I tried the two vbox, but the overlay doesn't looks good. Maybe modifying my data before plot is the way to do so.
PROC Star
Posts: 1,190

Re: Boxplot for different treatments

Hi @hua

 

What is the question here? Smiley Happy

SAS Super FREQ
Posts: 1,047

Re: Boxplot for different treatments

If you are overlaying two boxplots, use the DISCRETEOFFSET option to move one to the left and one to the right so that they do not overlap. Here is a simple example:

 

proc sgplot data=sashelp.class;
vbox weight / category=age discreteoffset=-0.22;
vbox height / category=age discreteoffset=0.22;
run;

Hope this helps!

Dan

Ask a Question
Discussion stats
  • 2 replies
  • 140 views
  • 0 likes
  • 3 in conversation