If you don't have a Z variable (which means all data points are
in the same group), but you still want to show the legend. You can create
a dummy z vaxiable:
legend1 frame position=(center inside right) label=none;
proc gplot data=class;
plot weight*height=z / legend=legend1;
On Thu, 21 Feb 2008 16:40:15 -0500, Ya Huang <ya.huang@AMYLIN.COM> wrote:
>Legend statement does not create legend, it only control how the
>legend looks like. To create legend, you have to have third variable
>in the plot statement:
>plot y*x=z /vaxis=....
>where z represent different group.
>On Thu, 21 Feb 2008 13:31:08 -0800, Atal <cardinalcure@GMAIL.COM> wrote:
>>hi I am trying to get the legend on the bar chart with foll. code. but
>>cannot get it displayed. there are no errors on the log. rest of the
>>figure is ok.
>> position=(center inside right)
>> label=none across=1 mode=protect shape= bar(2,1);
>>proc gplot data=box anno=box(where=(page=1));
>> plot y*x/vaxis=axis1 haxis=axis2 frame legend=legend1;
>>can anyone pls help me with this.