Dear Statalist Members,
I am using "coefplot" from Benn Jenn (http://repec.sowi.unibe.ch/stata/coefplot/), and plotting subgraphs by matrices. There are some unusual problems I can not resolve.
The minimal working example (MWE) of my code is
Some unusual problems I can not resolve.
The following demonstrates the result of using the code.

I hope someone can help me. Thanks a lot.
Best regards.
Yifan
I am using "coefplot" from Benn Jenn (http://repec.sowi.unibe.ch/stata/coefplot/), and plotting subgraphs by matrices. There are some unusual problems I can not resolve.
The minimal working example (MWE) of my code is
Code:
sysuse auto, clear regress price mpg headroom trunk length turn if foreign==0 matrix A = r(table)' matrix A = A[1...,"b"],A[1...,"ll"],A[1...,"ul"] matrix list A regress price mpg headroom trunk length turn if foreign==1 matrix B = r(table)' matrix B = B[1...,"b"],B[1...,"ll"],B[1...,"ul"] matrix list B coefplot (matrix(A), ci((2 3))), bylabel(Domestic) /// || (matrix(B), ci((2 3))), bylabel(Foreign) /// ||, /// byopts(xrescale) /// xlabel(, grid glcolor(gs14) glwidth(vthin) labsize(small) format(%2.1f) ) /// ylabel(, noticks labsize(small)) /// graphregion(color(red) margin(1=-5 b=-4 r=0 t=0))
- The command "graphregion(color(_option) margin(_option))" is invaild.
- The command "ylabel(, noticks)" is invalid. It could not eliminate the ticks of y-axis.
- The method used to set different xscale of two subgraphs is invaild. Is there any command to achieve the setting?
Code:
coefplot (matrix(A), ci((2 3)) xscale(range(-2000,500)) ), bylabel(Domestic) /// || (matrix(B), ci((2 3)) xscale(range(-2000,3000)) ), bylabel(Foreign) /// ||, byopts(xrescale cols(2))
I hope someone can help me. Thanks a lot.
Best regards.
Yifan
Comment