Hello,
I am trying to combine a clustered-type bar chart with a scatter plot (I know it's an odd combination but is needed).
I can create the two separately as I want with:-
But when I try to combine the two, I am not able to get the bar as clusters. The option over() is apparently not allowed with twoway:-
This one works, but the bars are stacked, which I don't want
Is there a work around? Would appreciate any help! I'm new to making graphing with stata.
I am trying to combine a clustered-type bar chart with a scatter plot (I know it's an odd combination but is needed).
I can create the two separately as I want with:-
Code:
region basevalue result1 result2 result3 1 1527.4535 1.3188448 5.8728838 1.696458 2 1019.9913 -10.977878 -2.34566 -1.2905247 3 139.53406 1.6148564 5.7460833 2.0168254 4 50.777878 1.500506 2.4120405 1.4608511 5 11.730878 1.4280396 5.5639558 .85804629
Code:
graph bar result1 result2 result3, over(region) scatter basevalue region
Code:
twoway (bar result1 result2 result3, over(region)) (scatter basevalue region)
Code:
twoway (bar result1 result2 result3 region) (scatter basevalue region)
Comment