I have a question about how to reduce the spacing between labels on the y-axis when using Benn Jann's coefplot command. This is related to a post I found on stackoverflow,, but the discussion there didn't quite solve the problem I think. Otherwise the plot will take up to much space in my document and I don't want to scale it down in a minipage or so, because then also the labels will be very small.
Anyway, reading the post there gave me the idea to fumble around with ysize(), xsize() and aspectratio().
Here is some code for demonstration:
Code:
quietly sysuse auto, clear quietly regress price mpg trunk length turn set autotabgraphs on * i) coefplot, drop(_cons) xline(0) /// xlabel(-600(100)300) /// scheme(s1mono) /// title(i) /// name(i, replace) * ii) coefplot, drop(_cons) xline(0) /// xlabel(-600(100)300) /// xsize(3) ysize(1) /// scheme(s1mono) /// title(ii) /// name(ii, replace) * iii) coefplot, drop(_cons) xline(0) /// xlabel(-600(100)300) /// aspectratio(.33) /// scheme(s1mono) /// title(iii) /// name(iii, replace) * iv) coefplot, drop(_cons) xline(0) /// xlabel(-600(100)300) /// aspectratio(.33) /// xsize(3) ysize(1) /// scheme(s1mono) /// title(iv) /// name(iv, replace)
What I would like to have is number iii with the grey shaded area removed:
Array
Does anybody know how to achieve that - or where to find the solution?
Thanks in advance and best regards,
Boris
0 Response to Coefplot: reduce spacing on y-axis
Post a Comment