Bookmark and Share

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   Eric Booth <[email protected]>
To   "<[email protected]>" <[email protected]>
Subject   Re: st: Changing title with by option ?
Date   Thu, 15 Jul 2010 04:26:35 +0000

<>

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index