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
Interpreting an interaction term in a panel linear regression modelHi, I am exploring the link between the introduction of a stewardship policy and the consumption of…
recording forward observations in panel dataDear Statalist, This is probably a trivial question, but I couldn't find a solution for it myself. …
Jensen-Shannon Divergence between training and test set classesI'm working on Stata and I have a training and a test set. For each one I have a set of variables (h…
Advice on DiD using repeated cross sectional dataI have a question about treatment and control groups - DiD using repeated cross sectional data. If n…
incorrect panel data structureDear All, I am facing the following (incorrect) long panel data format. Code: * Example generated…
Subscribe to:
Post Comments (Atom)
0 Response to Simple graphing issue
Post a Comment