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
Identifying persons with affected parentsHi, A common problem when studying families is to identify offspring with affected parents. The pro…
Wald test for one-sided hypothesis - strict inequalityI am trying to test a one-sided hypothesis after running a regression to see if the sum of two coeff…
Failing to replicate margins example 16: Average marginal effect (partial effects)This is the code for margins Example 16 Code: use https://www.stata-press.com/data/r17/margex quie…
Plotting graphs related to synth (synthetic control)Array Folks, I’m trying to plot some graphs related to command synth in Stata, but I’m not succeedin…
Analysing Likert scale outcome variable and how to combine questions into oneHello friends I have a challenge analysing likert scale outcome variable. Allow me share full detail…
Subscribe to:
Post Comments (Atom)
0 Response to Simple graphing issue
Post a Comment