sas >> gplot: Symbols disappear if special order in legend

by joakim.englund » Thu, 04 Sep 2008 01:56:03 GMT

Hi,

In a graph there was trouble getting the symbols in the legend when I had a
special order of the names in the legend:

legend1 position=(top center) label=none order=('Placebo' '130 ug'
'225 ug' '350
ug' '550 ug') shape=symbol(*0.00001*,*2.5*) frame;

When I didn't have the order statement, it was fine. Is there a way to get
both the order and the symbols?

KR,
Joakim

sas >> gplot: Symbols disappear if special order in legend

by msz03 » Thu, 04 Sep 2008 02:50:06 GMT


hi ... this works fine with a legend similar to yours (what are those asterisks in the SHAPE
option ?)

proc sort data=sashelp.class out=class;
by age height;
run;

goptions reset=all;

legend1
position=(top center inside)
label=none
order=(15 14 13)
shape=symbol(0.00001,2.5)pct
frame
;

symbol1 v=dot i=join c=red;
symbol2 v=dot i=join c=blue;
symbol3 v=dot i=join c=green;

proc gplot data=class;
plot weight*height = age / legend=legend1;
where age between 13 and 15;
run;
quit;

Similar Threads

1. GPLOT: suppress triplet symbols in LEGEND

By default, the GPLOT procedure displays each symbol three times in
its legend -- e.g.

 Men -o-o-o-
 Women -x-x-x

Wouldn't it look simpler to display each symbol once?

 Men o
 Women x

Any suggestions on how to get SAS to do this would be most
appreciated.

Thanks!
Paul

2. gplot legend device type special characters question

3. PROC GPLOT disable automated ordering of x-axis

Hello Folks,

I'm trying to create a graph which alphabetical x-values are ordered
depending on their corresponding y-values.
The data source is a proc sql in which I already order the rows on basis of
the x-asis-column.
My problem is, that PROC GPLOT autmatically re-sorts on basis of the x-axis.
The values of the x-axis are too numerous and change too often to use the
ORDER-Statement.
Is there any possibility to stop the automated ordering on basis of the x-
axis?

Thanks in advance for the help!

Jens

4. special symbols in SASGRAPH

5. display special characters/symbols

Hi all.

Just wondering if anyone please teach me what are the SAS statements
to allow SAS to output special characters/symbols such as ,  etc..

Thanks a lot.

Have a great day.

6. Special symbols in variable labels

7. special symbols

hi, I want to show some special symbols using following code, but it did
not work in this way. SAS doesn't see x as a hex code which I intended to
make. Could you show me the right way?

Many thanks,


************************************************;
data x;
do i=34 to 255;
hexi=put(i,$hex4.);
  x="this"||"'"||hexi||"'"||'x'||" value";
put i= hexi= x=;
output;
end;
run;

ods rtf file='symbol.rtf;
proc print data=x;
run;
ods rtf close;
*************************************************;

8. Including special symbols in labels