I want to graph my two variables Eff...DOWN and Eff...UP across time (variable FlexYear) and mirrored on the xaxis (Eff...UP above xaxis, Eff...DOWN below xaxis). The yaxis should be in % of total observations starting with 0% at y intercept and then going to x% (would take the automatic maximum) on each side of the y axis.
My approaches have been:
1st based on a textbook, but the problem is that here I cannot use a percent command.
Code:
twoway bar EffectiveSpread_DEAL_ESPR_UP FlexYear (bar EffectiveSpread_DEAL_ESPR_DOWN FlexYear)
Code:
graph bar (percent) EffectiveSpread_DEAL_ESPR_DOWN, over(FlexYear, gap(2))
I have the following data (data export only contains year 2018 but data set ranges from 1999 to 2018):
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(EffectiveSpread_DEAL_ESPR_DOWN EffectiveSpread_DEAL_ESPR_UP FlexYear) 0 1 2018 0 1 2018 0 1 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 1 2018 0 1 2018 0 1 2018 0 0 2018 0 1 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 0 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 1 2015 0 0 2018 0 0 2018 0 1 2018 1 0 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 1 0 2018 0 1 2018 0 1 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 0 2018 0 1 2018 0 0 2018 1 0 2018 0 1 2018 0 0 2018 0 1 2018 0 0 2018 1 0 2018 0 1 2018 0 0 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 1 2018 0 0 2018 0 1 2018 1 0 2018 1 0 2018 0 1 2018 1 0 2018 1 0 2018 0 1 2018 0 1 2018 1 0 2018 1 0 2018 end
0 Response to Graph mirrored on x axis.
Post a Comment