About the KEYLABEL option in GRAPH command

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
Jennylai
Posts: 35
Joined: Sun Feb 08, 2009 8:40 pm

About the KEYLABEL option in GRAPH command

Unread post 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!
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: About the KEYLABEL option in GRAPH command

Unread post 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.
Post Reply