Dear all,
I am using the catplot command, and want the labels to show on the y-axis. For some reason these labels won't show in the browse mode window, but appear in the "Manage variable label" window, so it seems like they have been applied. The code I have used is straight forward:
When I use catplot the y-axis is labeled "0" and "1" instead of "Hospitalized" and "Not hospitalized". I cannot edit this manually in the Graph Editor either. The code I have used is
Does anyone know why the labels are not showing in the browse mode window? Is there another way to label the y-axis using the catplot command?
Thanks,
Lillian
I am using the catplot command, and want the labels to show on the y-axis. For some reason these labels won't show in the browse mode window, but appear in the "Manage variable label" window, so it seems like they have been applied. The code I have used is straight forward:
Code:
label define var 1 "Hospitalized", modify label define var 0 "Not hospitalized", modify
Code:
catplot Intervensjon month var, percent(month Intervensjon) /// asyvars bar(1, ) bar(2, color(eltgreen) ) /// note("note") legend(off) /// ytitle("Percent")
Thanks,
Lillian
Comment