Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • marginsplot generating hard-to-read pictures

    Dear All,
    I am running
    > marginsplot, recast(scatter)
    to illustrate margins & CIs and what results is a mess. Now, there is a lot empty space in the pic and it would look just fine if I could spread it along the x axis a bit. Any ideas?
    thanks in advance
    Michal
    Click image for larger version

Name:	margins-edu_voting_eng.png
Views:	1
Size:	41.7 KB
ID:	1604568

    Last edited by Michal Krawczyk; 20 Apr 2021, 03:52.

  • #2
    Take a look at Nick Winter's -mplotoffset- (ssc describe mplotoffset).
    Code:
    sysuse auto
    qui reg price i.rep##i.fore
    qui margins i.rep, over(fore)
    marginsplot, recast(scatter) name(gr1,replace)
    mplotoffset, recast(scatter)  offset(.2)
    Compare:
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	46.0 KB
ID:	1604575

    Comment


    • #3
      that's what I needed, thanks! though it only works on one of our comps (with stata 16), on another (stata 14) it says "command mplotoffset is unrecognized"

      Comment

      Working...
      X