Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: subtitle margins on sid- by-side boxplots.


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: subtitle margins on sid- by-side boxplots.
Date   Thu, 21 Jan 2010 19:21:49 -0000

Try 

graph box price, 
by(foreign, row(1) sub(,orient(vertical) al(middle) j(left)))

The -subtitle()- call is in the wrong place.

You don't have to understand this. (I don't.) 

The rule is: With -by()-, an option belongs either within -by()- or
outside. If one is illegal or produces dopey results, try the other. 

There is a homology with: Whatever your partner says should be treated
as right even if it sounds completely wrong. 

But don't ask me to expand on either. 

Nick 
[email protected] 

Cohen, Elan

I'm using Stata 10.  In a graph similar to this:

sysuse auto, clear
graph box price, by(foreign,row(1)) sub(,orient(vertical) al(middle)
j(left))

I can't understand why there is so much "vertical" space in the
subtitles above each boxplot.  I've tried:

graph box price, by(foreign,row(1)) sub(,orient(vertical) al(middle)
j(left) margin(zero))

but this doesn't do anything.  It seems like the size of the subtitle
region is always the same as the size of the plot, even if I were to
specify -sub("")-.  Is there any way around this?  (The reason I'm using
-orient(vertical)- is because my value labels can get long, and end up
overlapping otherwise.)


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index