I am tring to create a simple bar graph, but I cannot get the categories on the x axis to display as I would like. I want them to be smaller and alighed verically. This is what I have tried.
Thanks, Chris
clear
input byte SPM datum
1 15.9
2 38.1
3 6.6
4 1.5
5 13.5
6 41.7
end
label values SPM SPM
label define SPM 1 "PIT (SPM 3)" 2 "First Time Homeless (SPM 5)" 3 "Time Homeless (SPM 1)" ///
4 "Housing Placements (SPM 7)" 5 "Returns (SPM 2)" 6 "Increase Income (SPM 4)" , modify
graph bar (asis) datum , over(SPM, gap(*.2) sort(1) descending ) asyvars ///
yscale(range(0 60)) ylabel(#10) graphregion(fcolor(white)) ///
title("Percent of COCs Hitting Target 3 or more Years") subtitle("2015-2019") ytitle("Percent", size(medsmall)) ///
blabel(bar) legend(off) showyvars yvar(label(labsize(tiny), angle(90)))
Related Posts with Simple graphing issue
.ado Programming in Stata without invoking mata: Invalid Name error from within the functionStata Status: Beginner I have declared a local variable inside my function. And whenever I referenc…
Take the latest observation per fiscal-periodHi, I want to take (or mark) the latest forecast (variable= forecast_date) per fiscal-period (varia…
Difference in proportion adjusted for baseline characteristics (Mantel Haenszel method)Hi, I am analysing the results of a trial & would like to compare the proportion of individuals…
Variable Significance Changes After Adding Regional DummiesDear All, I have two simple yet complicated question. I run my regressions on survey data using th…
Help required for variable forecast procedureDear All I need some help with commands relating to earnings forecasts model: EARN(t+1)=b0+ b1EARN…
Subscribe to:
Post Comments (Atom)
0 Response to Simple graphing issue
Post a Comment