Hi,
I created two graphs using the following commands
Graph 1
Graph 2
Now what I want is;
1. The first graph red bars need to be sorted in descending order as given for the green bars above in graph 1
2. The y-axis values of the graph 2 needs strictly be in the same order as they occurs in the graph 1
3. Combine these graphs into one in such a way that the y-axis occurs only to the left and are not showed in the graph 2 to the right
I tried this
, but it does not work.` The y-axis values occur in both graphs.
I need suggestion to improve the command above and work out a combine graph.
All three graphs are attached for clarity
I created two graphs using the following commands
Graph 1
Code:
graph hbar (asis) avg? , over(yaxis,sort(1) descending) ytitle("") ylab(, valuelabel grid) plotregion( margin(large)) plotregion(style(none)) blabel(bar,format(%3.0f)) graphregion(color(white)) bar(1,color(green)) bar(2,color(red)) nolab legend(off) name(left)
Code:
graph hbar (asis) score? , over(yaxis) ytitle("") plotregion( margin(large)) plotregion(style(none)) blabel(bar,format(%3.0f)) graphregion(color(white)) bar(1,color(green)) bar(2,color(red)) nolab legend(off) name(right)
1. The first graph red bars need to be sorted in descending order as given for the green bars above in graph 1
2. The y-axis values of the graph 2 needs strictly be in the same order as they occurs in the graph 1
3. Combine these graphs into one in such a way that the y-axis occurs only to the left and are not showed in the graph 2 to the right
I tried this
Code:
graph combine left right
I need suggestion to improve the command above and work out a combine graph.
All three graphs are attached for clarity
Comment