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!
About the KEYLABEL option in GRAPH command
Re: About the KEYLABEL option in GRAPH command
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.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!