Page 1 of 1

About the KEYLABEL option in GRAPH command

Posted: Mon Sep 07, 2009 10:35 pm
by Jennylai
Hi, may I ask a question about the KEYLABEL option in GRAPH command?

My code is as follows:

declare vect[string] grakey
compute grakey = ||'BMS','S&T','EMS','ACT'||

graph(header='predicted values of BF and true out of sample BF',patterns,keylabel=grakey,key=below) 4
# ytf_ne / 3
# ytfs / 5
# ytxfs / 6
# ytafs / 1


I want to let the key to show as this: BMS for YTF_NE, S&T for YTFS, EMS for YTXFS, and ACT for YTAFS. However, the code report error like this:
## SX22. Expected Type INTEGER, Got VECTOR(STRING) Instead
>>>>ns,keylabel=grakey,<<<<

How to fix the problem?

Thank you very much!

Re: About the KEYLABEL option in GRAPH command

Posted: Tue Sep 08, 2009 9:09 am
by TomDoan
Jennylai wrote:Hi, may I ask a question about the KEYLABEL option in GRAPH command?

My code is as follows:

declare vect[string] grakey
compute grakey = ||'BMS','S&T','EMS','ACT'||

graph(header='predicted values of BF and true out of sample BF',patterns,keylabel=grakey,key=below) 4
# ytf_ne / 3
# ytfs / 5
# ytxfs / 6
# ytafs / 1


I want to let the key to show as this: BMS for YTF_NE, S&T for YTFS, EMS for YTXFS, and ACT for YTAFS. However, the code report error like this:
## SX22. Expected Type INTEGER, Got VECTOR(STRING) Instead
>>>>ns,keylabel=grakey,<<<<

How to fix the problem?

Thank you very much!
The option is KLABEL, not KEYLABEL. Only the first three characters are significant in an option name, so we can't have both KEYLABEL and KEY options.