Hello Statalist,

I would like to put two graphs in one chart.
(1) bar graph (mean) of output by native
(1) bar graph (mean) of output by female

Here, the output is the output, native is ethnicity and female is sex. Both native and female are dummy.

The code below is what I tried.

Code:
graph bar output, over (native) name(native)
graph bar output, over (female) name(female)
graph combine native female
This results the one below.
Array


But the thing is, I would like it to be in one chart without gap between bar within the same group, and use different colors between each bar (or at least between 0 and 1 for each variable). I put the ideal picture that I would like it to be below.
Array


Could you please let me know the code to create the graph that I need?

I will put the actual data below.

I truly appreciate your help in advance. Thank you.

----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(output female native) double ID
0 0 0 1601120011
1 0 0 1605060007
1 0 0 1601060063
0 0 0 1601080032
1 0 0 1601040022
0 0 0 1601050033
0 0 0 1601050070
1 0 0 1607050089
1 0 1 1607050138
1 1 1 1607050088
1 1 0 1601060021
1 0 0 1601060073
0 0 1 1605040009
1 0 1 1605050016
1 1 1 1601070031
1 0 1 1607050163
0 0 0 1601050013
1 0 1 1607050155
0 0 1 1601080038
1 0 1 1601070006
0 0 1 1601070020
1 0 0 1601060047
0 0 1 1601080053
1 0 1 1601060012
1 0 1 1607050087
0 0 1 1607060009
1 0 0 1601060031
1 0 1 1601070050
0 0 0 1601050041
0 0 0 1601050057
0 0 1 1606020006
1 0 1 1605050011
1 0 1 1607050130
0 0 0 1606050029
1 0 1 1607050152
0 0 1 1601080060
1 1 1 1601100023
0 0 0 1601050063
0 1 1 1607060045
0 0 0 1601050011
1 0 1 1607050073
1 0 0 1601060024
1 . 1 1607050095
0 0 1 1605050019
1 0 1 1607050081
1 0 0 1601040008
1 0 1 2501040037
0 0 0 1606020007
1 1 1 2501040049
1 1 1 1605060014
1 0 1 1607050131
1 1 1 1601070028
1 0 1 1601070049
1 0 1 1607050140
1 0 0 1601060017
1 1 1 1605060003
1 0 1 1607050169
0 0 0 1606020005
1 1 0 1601070088
1 1 1 1601070024
1 1 0 1601060055
1 0 0 1601060060
1 0 0 1601100005
1 0 1 1607060078
0 0 1 1607060076
1 0 0 1601040015
. 0 1 1605050017
1 0 1 1605050036
0 0 1 1605030005
1 0 0 1601070064
1 1 1 1601070016
1 0 1 1601060010
0 1 1 1607060020
1 0 1 1601070068
0 1 0 1607060002
1 0 1 1607050172
0 1 0 1601080048
. 0 1 1607050167
0 0 1 1607060054
0 0 1 1607060021
1 0 0 1605050040
1 0 0 1601060014
1 1 1 1601100006
1 0 0 1601060044
0 0 0 1601080049
1 0 1 1607050127
1 0 0 1601060064
1 0 1 1607050128
0 0 0 1606020002
1 0 0 1601060034
1 1 1 1601100008
1 1 1 1601070187
1 0 1 1607050123
1 0 0 1601060037
1 0 1 1607050102
0 0 0 1601040017
1 0 0 1601060040
1 0 0 1605050027
1 0 1 1605050030
1 1 1 1601100024
end
label values female NewCas_a_m1_label
label def NewCas_a_m1_label 0 "No", modify
label def NewCas_a_m1_label 1 "Si", modify
------------------ copy up to and including the previous line ------------------