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
Related Posts with bar graph over two variables: unable to adjust the color of bars
Calculate standard deviation if I have the confidence interval of an average, the sample size, the average is it possible to go …
Sensitivity testHello fellow stata users! I am in the midst of writing my bachelor thesis and I'm doing a cross-sec…
Assign value to a categorical variable between two limitsDear users, hope everyone is well. i want to assign value of 3 to the variable "dum" when the curre…
Model for non-linear regression (?)Hey everyone, I really appreciate the support here in this forum. The more I learn about statistic …
PANEL DATA & UNIT ROOTS TESTI would like to inquire about some referred arguments in PANEL DATA, is it mandatory to proceed with…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph over two variables: unable to adjust the color of bars
Post a Comment