Announcement

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

  • Histogram - ylabel

    Dear Stata Users,

    I created a figure, but the percentages on the y-axis are not correct. Could you please let me know what is wrong with my code?

    I use this code:

    Code:
    graph bar firms_all plants_users, over(Loc) stack  bargap(-50)  ytitle("")  ///
    blabel(bar, color(white) position(inside) format(%4.2f) size(vsmall))   legend(order(1 "High skil" 2 "Low skill") region(lcolor(white))) ///
     graphregion(color(white))  scale(1.1) bar(1, bcolor(navy)) bar(2, bcolor(0 103 167)) scheme(s2mono) ///
    saving("$Fig_tab\firms_plants", replace)
    graph export "$Fig_tab\firms_plants.png", as(png) replace
    I tried to add "ylabel" but non of them worked out well.
    I got this figure:

    " I edited this because it turned out that my code is correct!"

    Thanks
    Attached Files
    Last edited by Jade Li; 16 Feb 2022, 04:15.
Working...
X