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.

About the KEYLABEL option in GRAPH command

Postby Jennylai » Mon Sep 07, 2009 10:35 pm

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!
Jennylai
 
Posts: 35
Joined: Sun Feb 08, 2009 9:40 pm

Re: About the KEYLABEL option in GRAPH command

Postby TomDoan » Tue Sep 08, 2009 9:09 am

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.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Graphics, Reports, and Other Output

Who is online

Users browsing this forum: No registered users and 1 guest