Announcement

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

  • option lc() not allowed \ option lcolor() not allowed

    Dear all,

    Even though I found similar posts online, I still could not manage to fix this. The code is as follow:
    Code:
    twoway (line Household yearq  ) (line NFC yearq ) (line Bank yearq ) (line FinIntSpecialised yearq  ), lc(black gray4 gray8 gray12) lpattern(Dash_dot_dot Solid Dot Dash)  graphregion(color(white)) bgcolor(white) graphregion(color(white)) title("Bank issued bond allocation") ytitle("percentage") xtitle("quarter")  xline(210 217, lp(dash)) xlabel(204(1)233 210 "proposal" 217 "first approval", angle(vertical))
    and the error message is option lc() not allowed r(198);

    It does not work with lcolor() either

    Any hint would be appreciated,
    Thanks a lot,
    Pierre
    Last edited by Pierre Antoine; 29 Oct 2020, 07:52.

  • #2
    I think you're being bitten by your use of parentheses, which place the options beyond the commands they should apply to. The () notation is not needed any way. Try

    Code:
    twoway line Household NFC Bank FinIntSpecialised yearq, lc(black gray4 gray8 gray12) lpattern(Dash_dot_dot Solid Dot Dash)  ///
    graphregion(color(white)) bgcolor(white) title("Bank issued bond allocation") ytitle("percentage") xtitle("quarter")  xline(210 217, lp(dash)) xlabel(204(1)233 210 "proposal" 217 "first approval", angle(vertical))
    Last edited by Nick Cox; 29 Oct 2020, 08:14.

    Comment


    • #3
      It works, brilliant!

      Thanks a lot Nick, have a great day.
      Pierre

      Comment

      Working...
      X