Boxplot in SAS using proc gchart
<p>First question, is it possible to produce a boxplot using proc gchart in SAS?</p>

<p>If it is possible, please give me a brief idea.</p>

<p>Or else, on the topic of using proc boxplot.
Suppose I have a dataset that has three variables ID score year;
something like,</p>

<pre><code>data aaa;
input id score year;
datalines;
1 50 2008
1 40 2007
2 30 2008
2 20 2007
;
run;
</code></pre>

<p>I want to produce a boxplot showing for each ID in each year. (So in this case, 4 boxplots in a single plot)
How can i achieve this?</p>

<p>I have tried using </p>

<pre><code>proc boxplot data=aaa;
plot score*ID;
by year;
run;
</code></pre>

<p>However, this is not working as we can see year is not sorted by order.
Is there a way to get other this?</p>