Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How do I include quotes in a graph axis title?


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: How do I include quotes in a graph axis title?
Date   Fri, 16 Jul 2004 08:25:16 +0100 (BST)

(Apologies for sending this post again, but I don't think the listserver
received it on its first mailing.)

Susan Donath wrote:

> How do I include quotes in an axis (or legend) title? ie I want the axis
title to read:  number "fully" breastfeeding
>
> I've tried using a local macro defined as char(34) but this doesn't work
because Stata interprets the quote after inserting the macro.

Use the -legend(label())- option. An example, shamelessly lifted from
Michael Mitchell's excellent new book (2004), which I strongly encourage
you to buy:

. sysuse auto
. scatter mpg weight price, legend(label (1 Weight) label (2 Price))

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Mitchell MN (2004) A VISUAL GUIDE TO STATA GRAPHICS, College Station, TX:
Stata Press.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index