Thanks to Nick, Ben, and Nick. This really helps.
--SC
-----Original Message-----
From: [email protected] on behalf of Nick Cox
Sent: Wed 5/25/2005 3:19 PM
To: [email protected]
Cc:
Subject: st: RE: breaking labels into 2 lines
The answer lies in the use of compound double quotes.
Try something like
xla(1 `" "first" "group" "' 2 `" "second" "group" "')
If you think of
`"
i.e. <left single quote><double quote>
as a left delimiter
and
"'
i.e. <double quote><right single quote>
as the corresponding right delimiter, then
you won't go wrong, given the school algebra-like
rule that delimiters must be matched in pairs.
I don't know where this is documented either;
I too would be grateful for a manual or
on-line help pointer, for this reason: if it
isn't documented in at least one of those
sources, it would be a good candidate for
a Stata Journal Tip.
Nick
[email protected]
Cheng, Hsu-Chih
> I have long x labels and would like to break them into 2 or 3
> lines so I can space categories in a graph. For example, instead of
>
>
>
> first group second group
>
>
>
> I want to label the x-axis as
>
>
>
> first second
>
> group group
>
>
>
> I checked axis_label_options, but couldn't find an answer. I
> am sure I must have missed something. I’d really appreciate
> it if someone can help.
*
* 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/
<<winmail.dat>>