Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str40 y str15(x markers) "CEO turnover-performance sensitivity" "Co-option" "CDN14rfs" "CEO pay level" "Co-option" "CDN14rfs" "CEO pay-performance sensitivity" "Co-option" "CDN14rfs" "Investment" "Co-option" "CDN14rfs" "Dividend" "Co-option" "JL18fm" "Takeover" "Co-option" "xxx" "Capital structure" "Co-option" "xxx" "Cash holdings" "Co-option" "KLHF20wp" "Hedging" "Co-option" "xxx" "Institutional ownership" "Co-option" "xxx" "Tobin's q" "Co-option" "xxx" "M&A" "Co-option" "xxx" "Crash risk" "Co-option" "KHFL20rfqa" "Synchronicity" "Co-option" "xxx" "Investment (efficiency)" "Co-option" "xxx" "M&A" "Short Selling" "CLM19jace" "Crash risk" "Short Selling" "DGK20jcf" end label define X 3 "Co-option" 6 "Short Selling" 9 "CSR" encode x, gen(X) label define Y 1 "CEO turnover-performance sensitivity" 2 "CEO pay level" 3 "CEO pay-performance sensitivity" 4 "Investment" /// 5 "Capital structure" 6 "Cash holdings" 7 "Dividend" 8 "Institutional ownership" 9 "Tobin's q" 10 "Hedging" 11 "Takeover" /// 12 "M&A" 13 "Crash risk" 14 "Synchronicity" 15 "Investment (efficiency)" encode y, gen(Y) labmask Y, values(y)
Code:
scatter Y X, ytitle("") xtitle("") mcolor(none) mlab(markers) mlabpos(0) mlabsize(small) /// xlab(0 " " 1 " " 2 " " 3 4 " " 5 " " 6 7" " 8 " " 9 10 " " 11 " ", val grid) xsc(r(0 11)) /// ylab(0 " " 1 2 3 4 5 6 7 8 9 " " 10 11 12 13 14 15, val grid angle(0)) ysc(r(0 15)) scale(0.5)
In addition, I ran a similar code as
Code:
scatter Y X, ytitle("") xtitle("") mcolor(none) mlab(markers) mlabpos(0) mlabsize(small) /// xlab(0 " " 1 " " 2 " " 3 4 " " 5 " " 6 7" " 8 " " 9 10 " " 11 " ", val grid) xsc(r(0 11)) /// ylab(0 " " 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15, val grid angle(0)) ysc(r(0 15)) scale(0.5)
As you can see, the labels of y are complete in the first graph but incomplete in the send graph. The only difference between these two codes is
Code:
ylab(0 " " 1 2 3 4 5 6 7 8 9 " " 10 11 12 13 14 15, val grid angle(0)) ylab(0 " " 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15, val grid angle(0))
0 Response to labels of y
Post a Comment