Dear all,
When creating graphs I often use splitvallabels to break up longer labels on the y axis. However, this only works when having something like this:
splitvallabels rep78 , length(11)
graph bar mpg , over(rep78, relabel(`r(relabel)') )
My code is as follows:
catplot var1 var2 if var3 == 1 & var1 > 0, percent(var1) asy recast (hbar) ///
title("XXX", size(medium) span margin(b=10)) ytitle("YYY") legend( bmargin(t=1) bexpand span size(small)) ///
aspect(0.25) ysize(2) xsize(2.8) scale(*0.75)
You see that I do not use the over option, so that I cannot include relabel(`r(relabel)'). Does anyone have an idea on how to tackle this issue?
Related Posts with Using splitvallabels + catplot without over option
Please help: Merge 1:1 delivers different results after each runthroughI want to merge two datasets based on one variable (neither dataset contains duplicates on this vari…
marginsplot title (and text box) centered on graph region, not plot region-marginsplot- expands the title and text box across the entire graph region, which twoway plots don'…
Setting up a 3-dimensional panel in Stata with interaction termDear All, I have a query related to a using a 3-dimensional panel in Stata which I am unable to fig…
Two-way fixed effects in unbalanced panelHi everyone, I am replicating a paper in an economic journal which uses an unbalanced panel of firm…
How to draw this graph with Stata? Tempogram?Hi. I want to draw this graph with time use data and have been failing to produce one. What would be…
Subscribe to:
Post Comments (Atom)
0 Response to Using splitvallabels + catplot without over option
Post a Comment