Announcement

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

  • Background Color Twoway Chart

    Dear all,

    I am trying to change the background colour of a twoway chart but it is not working, I have tried different solutions posted in Statalist but for some reason it does not work. My code is:

    twoway (bar VARIABLE year, lcolor(red) fcolor(none)), by(country) plotregion(color(white)) graphregion(color(white)), if year>1998 & year<2015, yscale(range(0 3)) xtitle(Right-wing Extremism by Country) ytitle(Deviation from Mid-point)

    Any help would be much appreciated. Thank you!

    Joan

  • #2
    Place the option within by()

    Code:
    by(country, graphregion(color(white)))

    Comment


    • #3
      Thank you very much Andrew! This works perfectly

      Comment

      Working...
      X