Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: possible to create a graph with only text in it?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: possible to create a graph with only text in it?
Date   Wed, 26 May 2004 14:37:25 +0100

Yes, there is. Here is a minimal example. Feed it 
a variable and values will go on horizontal lines 
spaced from top to bottom. Some tuning with 
marker_label_options will normally be essential, 
but at the same time may be more than enough 
to produce simple labels. 

program justtext 
	version 8 
	syntax varname [if] [in] [, * ] 
	marksample touse, strok 
	tempvar y x 
	gen `y' = _n 
	gen `x' = 1 
	twoway scatter `y' `x' if `touse', ms(none) mlabel(`varlist') /// 
	plotregion(style(none)) ysc(reverse off) xsc(off) legend(off) /// 
	`options' 
end

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Nick Winter
> Sent: 26 May 2004 14:02
> To: Stata List
> Subject: st: possible to create a graph with only text in it?
> 
> 
> Hi all,
> Maybe I'm missing something obvious, but is there some way to 
> create a 
> graph that is completely blank, except that it includes text?
> 
> Or, to get at what I really want to do, is there a way to 
> place text into 
> the blank spaces created by -graph combine-, with the holes() options?
> 

*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index