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
HELP-Variable id does not uniquely identify the observations & variable years contains all missing valuesHello I am trying to transform my wide data (5 countries,3 variables, quarterly data from 1966-2021)…
Margins after (dynamic) panel probitDear all, I am trying to estimate the following (dynamic) panel probit model and then its marginal …
Risk strata under x axis STCOMPETDear Statalists, I should add the risk strata (number of patients at risk) under risk axis followin…
SSC astile - how to get difference of High minus low portfolio ?Hi there, I am using the below example to explain my query. I am able to create portfolios successf…
By group bar charts only displaying results for one type of observations within each groupHi all, I use Stata 16.1 and I'm trying to make bar charts for two different groups. The first gro…
Subscribe to:
Post Comments (Atom)
0 Response to Simple graphing issue
Post a Comment