Hi Statalist,
I am trying to make a bar chart in Stata with some very long labels on the y-axis. However, some of my labels are truncated when displayed in the graph (se example). I am sure there is a way of keeping the entire label in the graph, and I am hoping that maybe one of you can tell me how to do it.
Thanks in advance.
I use the following code:
graph hbar AAbw, ///
over (MeanP501) bar(1, color(black)) bar(2, color(gs8)) ///
over(study, label(labsize(tiny))) ///
over(country, label(labsize(vsmall)) gap(400)) nofill ///
ytitle("Acrylamide (μg/kg bw/day)", size(vsmall)) ///
title("Median/mean estimated acrylamide intake" ///
"based on DQ or both DQ and DR" ///
" ", span size(small) color(black)) ///
ysize(10) ///
xsize(7) ///
ylabel(0(0.1)0.9, labsize(vsmall)) ///
legend(size(vsmall)) ///
graphregion(color(white))
Array
Related Posts with Avoid truncation of axis labels in bar graph
Does regress, robust use weighted least square or ordinary least square?Dear all, I ran a multiple linear regression model using the regress, robust function as i wanted t…
multencode: similar command that creates only one new output variable?Hello everyone, Description (taken from STATA help): multencode creates new numeric variables newv…
Does vif command run all possible regressions?Variance inflation factor is calculated using each independent var as the dependent var, regressed a…
Varied clustering analysis results from the same datasetHi everyone, I read Stata manual for clustering analysis on this topic, and followed suggestion to …
Problem combining multiple IF qualifiers which reference value of other variable entriesHi all, First time posting - very grateful for this well-resourced community that has helped me thu…
Subscribe to:
Post Comments (Atom)
0 Response to Avoid truncation of axis labels in bar graph
Post a Comment