Hi everyone,
I created a bar graph with the following code:
graph hbar cost_food cost_child cost_health cost_housing cost_transportation cost_civic cost_otherCOMB, over(housing_arrangement, sort(2) descending) name(r2, replace) scale(*.6) asyvars scheme(s1) ylabel (0 (250) 2000, angle(0)) intensity(*.9) legend(rows(1) label(1 "Food") label(2 "Child Care") label(3 "Healthcare") label(4 "Housing") label(5 "Transportation") label(6 "Civic") label(7 "Other") order(4 1 5 6 3 2 7) size(small) region(lstyle(none))) ytitle("Spending in $") graphregion(color(white)) bar(1, bcolor(dkorange)) bar(2, bcolor(cranberry)) bar(3, bcolor(ebblue)) bar(4, bcolor(navy)) bar(5, bcolor(gray)) bar(6, bcolor(forest_green)) bar(7, bcolor(maroon)) title("Actual Spending", color(black))
I want to remove the labels for my housing_arrangement variable. The modification over(housing_arrangement, sort(2) descending lab(nolab)) does not work with the asyvars option (no labels continue to be there). What can I do to suppress the labels?
Thanks,
Isabel
I created a bar graph with the following code:
graph hbar cost_food cost_child cost_health cost_housing cost_transportation cost_civic cost_otherCOMB, over(housing_arrangement, sort(2) descending) name(r2, replace) scale(*.6) asyvars scheme(s1) ylabel (0 (250) 2000, angle(0)) intensity(*.9) legend(rows(1) label(1 "Food") label(2 "Child Care") label(3 "Healthcare") label(4 "Housing") label(5 "Transportation") label(6 "Civic") label(7 "Other") order(4 1 5 6 3 2 7) size(small) region(lstyle(none))) ytitle("Spending in $") graphregion(color(white)) bar(1, bcolor(dkorange)) bar(2, bcolor(cranberry)) bar(3, bcolor(ebblue)) bar(4, bcolor(navy)) bar(5, bcolor(gray)) bar(6, bcolor(forest_green)) bar(7, bcolor(maroon)) title("Actual Spending", color(black))
I want to remove the labels for my housing_arrangement variable. The modification over(housing_arrangement, sort(2) descending lab(nolab)) does not work with the asyvars option (no labels continue to be there). What can I do to suppress the labels?
Thanks,
Isabel
Comment