Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: Changing title with by option ?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: Changing title with by option ?
Date   Thu, 15 Jul 2010 11:57:24 +0200

<> 


Hellen Kim may want to bear in mind that the graph editor can be used as a
last resort to "nudge" the graph into its final shape. This may be less
timeconsuming than finding the right options to automate the task entirely.
Everything depends on whether this is a one-off or whether the process
should be repeated time and again.


There is also the option of recording the changes made to -play()- them
later on. Also note http://www.stata-journal.com/article.html?article=gr0042
by Maarten and myself...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Heekyung Hellen
Kim
Gesendet: Donnerstag, 15. Juli 2010 11:47
An: statalist@hsphsun2.harvard.edu
Betreff: RE: st: Changing title with by option ?

Thank you !!

Is there any way that I can give subtitles different to each graph?  

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Eric Booth
Sent: Thursday, July 15, 2010 12:27 AM
To: <statalist@hsphsun2.harvard.edu>
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
ebooth@ppri.tamu.edu
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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index