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
Meta-regression - subgroup analysesHi to everybody, Is it correct to conduct the meta-analysis by subgroups even if there are groups th…
Create bar charts with data in multiple columnsHello! I'm using ODK to collect data in the field, for example symptoms experienced by cases, as che…
goodness of fit and multi-linear regression analysisHi experts, It did not work when I ran "estat gof" after a multivariable linear regression model. I…
How to show different colours for different observations in scatter plot?Hi there, I have generated scatter plots for a numerical viable change by years in various industri…
how to calculate the Marginal Effects after xtreg commandHi I am new to use STATA for analysis and struggling to estimate marginal effects. I am examining t…
Subscribe to:
Post Comments (Atom)
0 Response to Avoid truncation of axis labels in bar graph
Post a Comment