Almost totally new at this...
I would like to create a bar graph and apply conditional formatting to select cells in order to change their color.
In the data table below I used:
graph hbar (asis) conditiona conditionb, over(goterm, sort(order))
Now I would like to use the variables pofa, pofb to selectively color bars that fall below certain thresholds.
So for example pathway one, condition b, pofb<0.01 so I would like to set the color of that bar to red, but pathwaytwo, conditionb, pofb>0.01 so that bar would be set to black.
This problem may be trivially easy, but I could not solve it with the available documentation that I found in the manual.
Thanks in advance for any tips!
I would like to create a bar graph and apply conditional formatting to select cells in order to change their color.
In the data table below I used:
graph hbar (asis) conditiona conditionb, over(goterm, sort(order))
Now I would like to use the variables pofa, pofb to selectively color bars that fall below certain thresholds.
So for example pathway one, condition b, pofb<0.01 so I would like to set the color of that bar to red, but pathwaytwo, conditionb, pofb>0.01 so that bar would be set to black.
This problem may be trivially easy, but I could not solve it with the available documentation that I found in the manual.
Thanks in advance for any tips!
|
Comment