Dear all,
I am trying to construct a -twoway bar-, in which the same RGB color should apply with different adjusted intensity to different bars. It turns out that all bars are affected and they are all filled with the exact same color.
Here is a small example:
Am a missing something with the quotes or anything else? Could someone provide a solution?
Thanks very much.
Sylvain
I am trying to construct a -twoway bar-, in which the same RGB color should apply with different adjusted intensity to different bars. It turns out that all bars are affected and they are all filled with the exact same color.
Here is a small example:
Code:
webuse auto, clear collapse (mean) price weight, by(foreign) gen x0 = foreign-.2 gen x1 = foreign+.2 *This graph with intensities of red works fine: tw bar price x0, barw(.4) base(0) fc(red) lc(gs0) || bar weight x1, barw(.4) fc(red*.5) lc(gs0) ylab(0(1000)6000) xlab(0 "Domestic" 1 "Foreign") legend(lab(1 "Price") lab(2 "Weight")) name(graphOK) *This one with intensities of an RGB color does not: tw bar price x0, barw(.4) base(0) fc("245 82 11") lc(gs0) || bar weight x1, barw(.4) fc("245 82 11"*.5) lc(gs0) ylab(0(1000)6000) xlab(0 "Domestic" 1 "Foreign") legend(lab(1 "Price") lab(2 "Weight")) name(graphNOTOK)
Thanks very much.
Sylvain
Comment