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
Population size (with sampling weights) != actual population sizeI'm performing some analyses were I need to draw a stratified two-stage sample from some population …
Trouble merging multiple files with a loopHi, I have 62 files that are numbered in sequential order (1,2,3...) that I want to merge into and …
Link suppliers-customer's transaction records by yearsHi Stata Users, I am using Stata for my project that links supplier-customer transaction records. …
Observations used in the estimation of a particular coefficientDear Statalist users, I am looking for a way to find the number of observations used to estimate a …
Analysis of panel data with different time spansHello I am preparing my thesis but I can not process further due to the problem of merging data. I h…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph over two variables: unable to adjust the color of bars
Post a Comment