Hi experts;
I am plotting a bar graph that has two variables. My code looks like below:
#delimit ;
graph bar y_var, over(x_var1, relabel(1 "1" 2 "2" 3 "3" 4 "4") label(labsize(vsmall) alternate) gap (5)) over(x_var2, gap(100))
bar(1, col(gs4))
bar(2, col(gs8))
bar(3, col(gs12))
bar(4, col(gs16))
{other options}
;
#delimit cr
The issue is that the "bar" commands don't work when you have two variables over which you are sketching your plot. Any experience how I can fix the colours?
Thank you
I am plotting a bar graph that has two variables. My code looks like below:
#delimit ;
graph bar y_var, over(x_var1, relabel(1 "1" 2 "2" 3 "3" 4 "4") label(labsize(vsmall) alternate) gap (5)) over(x_var2, gap(100))
bar(1, col(gs4))
bar(2, col(gs8))
bar(3, col(gs12))
bar(4, col(gs16))
{other options}
;
#delimit cr
The issue is that the "bar" commands don't work when you have two variables over which you are sketching your plot. Any experience how I can fix the colours?
Thank you
Comment