Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Graph titles and labels with by()


From   "Steichen, Thomas J." <SteichT@rjrt.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Graph titles and labels with by()
Date   Thu, 10 May 2007 17:00:34 -0400



Ok, the mailing list wiped out 3 lines... The last message was:

Try: graph hbox lnw [fw=wgt], over(cat) by(group, noiy title("Title"))

i.e., title inside by option
 
 
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Thomas Masterson
Sent: Thursday, May 10, 2007 4:29 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Graph titles and labels with by()

Hi There,
searched around but couldn't find an answer, so:

I'm running in to a problem producing the graph I want.
Running two separate box plots and combining them gives
me a graph with one title, but a lot of space taken up
with category labels. Using the by() option seems like
it should be the answer.
Here's what I think is the right code:

.. graph hbox lnw [fw=wgt], over(cat) by(group, noiy) title("Title")

here's what I get:

	Title           Title
	group1		group2
      |               |
cat1 |  box     cat1 |  box
      |               |
cat2 |     box  cat1 |     box
      |_________      |___________
	scale            scale

and here's what I want it to look like:

		Title
	group1		group2
      |               |
cat1 |   box         |   box
      |               |
cat2 |      box      |      box
      |___________    |____________
	scale            scale

Can anybody see what I'm doing wrong?
I also tried the -noiyl- in the -by()-
options, but got the same output.
Thanks!
tom

-- 
**********************************
* Thomas Masterson               *
* Research Scholar               *
* Levy Economics Institute       *
* Bard College                   *
* Annandale-on-Hudson, NY  12504 *
* (845) 758-7715                 *
**********************************
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s), contains information that may be confidential,
protected by the attorney-client or other legal privileges, and/or
proprietary non-public information. If you are not an intended
recipient of this message or an authorized assistant to an intended
recipient, please notify the sender by replying to this message and
then delete it from your system. Use, dissemination, distribution,
or reproduction of this message and/or any of its attachments (if
any) by unintended recipients is not authorized and may be
unlawful.


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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