Announcement

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

  • Marginsplot cut off y axis

    Dear Statalist

    I am running a regression and I am plotting my graphs using marginsplot

    marginsplot, recast(line) noci

    Is there a way to cut off the yaxis in marginsplot so that the yaxis has a range from 0-2? I tried to use the yscale(range()) option but this is not cutting off the axis.

    Thank you so much!

  • #2
    See https://www.statalist.org/forums/for...ard-axis-range

    Comment


    • #3
      Thank you!

      But is it possible to do this directly in the marginsplot command? Without the twoay command?

      Comment


      • #4
        Unless you explicitly exclude observations in advance using the -if- qualifier. Otherwise, look at Nick Cox's comments in #4 of the linked thread.
        Last edited by Andrew Musau; 16 Mar 2021, 07:14.

        Comment

        Working...
        X