Announcement

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

  • Changing colour of spike using coefplot command

    Hello,

    I am trying to edit the colors of my graph using the "coefplot" command. The color of the marker can easily be changed using mcolor(colour), but the I can't figure out how to change the colour of the confidence interval 'spike'; the command lcolour(colour) does not work.

    Does anyone know if this is possible using the coefplot command other than manually changing it with the graph editor?

    Thank you,
    Sam

  • #2
    I'm not familiar with -coefplot-, which is not an official Stata command. But my hunch is that the options you are interested in are all "passthrough" options to -graph twoway-. If I'm right about that, you need to Americanize -lcolour()- to -lcolor()-.

    Comment


    • #3
      The FAQ section suggests ''Doesn't work'' type of statement doesn't help us to help you. You need to show us the full commands you used and where you used something that did not work. Please read the FAQ section before posting. Without knowing your commands, here is a solution conditioned on you have two estimations stored with 'at' values from margins. The mechanism should be similar to whatever you have:

      Code:
      coefplot ///
      (Baseline, connect(l) lpatt(solid)lcol(black)msym(S)mcol(black)ciopts(lpatt(dash)lcol(black))) ///
      (Followup, connect(l) lpatt(dash)lcol(black)msym(S)mcol(black)ciopts(lpatt(dash)lcol(red))), ///
      at xtitle(" " "whatever")


      Roman

      Comment


      • #4
        Thank you, Clyde and Roman for the responses.

        The issue was resolved using the command ciopts(lcolor(colour)).

        Comment

        Working...
        X