I'd like to insert a line break in the label for each tick on my X axis. I found this older article on the topic, but this method no longer seems to work:
http://www.stata-journal.com/sjpdf.h...iclenum=gr0020
That article specifies that the whole label should be encapsulated in '" and "'; and that each line be encapsulated in double quotes. However, I get a "type Mismatch" error when I try that.
Here's the code:
. marginsplot, recast(bar) xlabel(1 '" "Hi-Educ." "Rep" "' 2 '" "Hi-Educ." " Dem" "' 3 '" "Lo-Educ." " Rep." "' 4 '" "Lo-Educ" " Dem." "')
> title ("Fear") xtitle("Party Affiliation") ytitle("Fear") legend(off) scheme(s1mono)
http://www.stata-journal.com/sjpdf.h...iclenum=gr0020
That article specifies that the whole label should be encapsulated in '" and "'; and that each line be encapsulated in double quotes. However, I get a "type Mismatch" error when I try that.
Here's the code:
. marginsplot, recast(bar) xlabel(1 '" "Hi-Educ." "Rep" "' 2 '" "Hi-Educ." " Dem" "' 3 '" "Lo-Educ." " Rep." "' 4 '" "Lo-Educ" " Dem." "')
> title ("Fear") xtitle("Party Affiliation") ytitle("Fear") legend(off) scheme(s1mono)
Comment