Announcement

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

  • How to remove (horizontal) blue lines when using coefplot

    I am using coefplot in Stata and I wanted to ask if anyone in this forum knows how to remove the (horizontal) light blue lines coming out of each variable or choose a different colours in Stata?

    Click image for larger version

Name:	Screenshot 2021-09-26 at 21.13.43.png
Views:	1
Size:	23.2 KB
ID:	1629168


    I tried grid lines in Stata but it does not work. It seems that it is especific to this command, but I might be wrong. I can add another coloured line on top of the blue one, but cannot change the colour of the blue line or remove it.

    Any thoughts? Many thanks in advance!

  • #2
    coefplot is from the Stata Journal/ SSC, as you are asked to explain (FAQ Advice #12). First port of call should be

    Code:
    help coefplot
    which will reveal the option

    Code:
    coefplot, grid(none)

    Comment


    • #3
      Thank you Andrew Musau for pointing that out. It worked!

      Comment


      • #4
        Hi, I am trying to do the same, but the gridlines still appear even after adding the condition "grid(none)". Does anyone know what might be the reason and how to solve it?

        Comment


        • #5

          This option worked: ylab(, nogrid) xlab(, nogrid)

          Comment

          Working...
          X