Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: Changing title with by option ?
From
"Heekyung Hellen Kim" <[email protected]>
To
<[email protected]>
Subject
RE: st: Changing title with by option ?
Date
Thu, 15 Jul 2010 05:19:32 -0400
Thank you. My label for category is too long to put in one line over each
graph. Is there any way to appear in two lines?
For example,
Category 1 = Mining/Quarrying/Oil&Gas
Extraction/Utilities/Construction/Manufacturing
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric Booth
Sent: Thursday, July 15, 2010 12:27 AM
To: <[email protected]>
Subject: Re: st: Changing title with by option ?
<>
Label your values. See -help label-.
******************!
clear
inp x y category
10 25 1
12 10 2
15 5 3
10 20 1
11 33 2
14 12 3
20 20 1
end
**label values**
lab def ll 1 "my category A" 2 "my category B" 3 "my category C", modify
lab val category ll
ta category
la li
**Also, note the difference between labels of the "by" categories and
titles:
scatter y x, by(category, rows(1)) ///
title("{bf:TITLE GOES HERE}" "{stSerif:-Subtitle here-}" "{it:3
{sup:rd} line here}")
******************!
~ Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
[email protected]
Office: +979.845.6754
On Jul 14, 2010, at 10:38 PM, Heekyung Hellen Kim wrote:
> I want to rename the title of each graph with by option. How do I do it?
>
> For example,
> Scatter y x, by(Category)
>
> Category has the value, 1, 2, and 3. This does put the title on each
graph
> by 1, 2, and 3. But I want to describe the title in words instead of the
> number. How can I do it?
>
> *
> * 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/
*
* 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/
*
* 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/