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]

From |
Eric Booth <ebooth@ppri.tamu.edu> |

To |
"<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: attaching text and tables to graphs |

Date |
Thu, 9 Jun 2011 13:39:35 +0000 |

<> BTW, you can use a loop to build your 'note' with some data from you dataset more quickly, e.g., ************* sysuse auto, clear forval n = 1/15 { loc sidetable `" `sidetable' " `=make[`n']' | `=price[`n']'" "' } di `"`sidetable'"' graph bar (mean) headroom price, /// blabel(bar) note("{bf: MAKE |Price}" /// "---------------------------" `sidetable' /// , size(medsmall) color(green) /// position(2) margin(small) /// justification(right)) *********** - Eric __ Eric A. Booth Public Policy Research Institute Texas A&M University ebooth@ppri.tamu.edu On Jun 9, 2011, at 8:17 AM, Eric Booth wrote: > <> > > Something like this? > ******** > sysuse auto, clear > > graph bar (mean) headroom price, /// > blabel(bar) note("{bf: MY DATA}" /// > "---------------" "1: `=make[1]'" /// > "2: `=make[2]'" "3: `=make[3]'" "4: `=make[4]'" /// > "5: `=make[5]'" "6: `=make[6]'" "7: `=make[7]'" /// > "8: `=make[8]'" "9: `=make[9]'" "10: `=make[10]'" /// > "Other: `=make[11]'", size(medium) color(green) /// > position(2) margin(medsmall) /// > justification(left)) > > ******** > > Also, take a look at this thread for other ideas: > http://www.stata.com/statalist/archive/2010-08/msg01131.html > > - Eric > __ > Eric A. Booth > Public Policy Research Institute > Texas A&M University > ebooth@ppri.tamu.edu > > > On Jun 8, 2011, at 11:24 PM, Richard Mc Gee wrote: > >> Dear Statalist, I would like to attach a table/column of text to the >> right hand side of a graph and was wondering if you had any >> suggestions on how to achieve this? I already have information on >> yaxis 1 & 2 and would prefer not to move these i.e. I would like to >> have this information in addition to the graph. 'Graph combine' isn't >> quite right either. >> Thanks for your help, >> Richard McGee * * 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/

**Follow-Ups**:**Re: st: attaching text and tables to graphs***From:*Eric Booth <ebooth@ppri.tamu.edu>

**References**:**st: attaching text and tables to graphs***From:*Richard Mc Gee <dr.richardmcgee@gmail.com>

**Re: st: attaching text and tables to graphs***From:*Eric Booth <ebooth@ppri.tamu.edu>

- Prev by Date:
**Re: st: How to model a positive continuous dependent variable with many zeros?** - Next by Date:
**Re: st: calculating latitude and longitude of nearby point** - Previous by thread:
**Re: st: attaching text and tables to graphs** - Next by thread:
**Re: st: attaching text and tables to graphs** - Index(es):