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

st: RE: RE: Bad dotplot command?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Bad dotplot command?
Date   Fri, 29 Oct 2004 00:57:55 +0100

That 

passthru 

should be 

str asis 

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

> -----Original Message-----
> From: Wallace, John [mailto:John_Wallace@affymetrix.com]
> Sent: 29 October 2004 00:38
> To: statalist@hsphsun2.harvard.edu
> Cc: Nick Cox
> Subject: RE: Bad dotplot command?
> 
> 
> Above and beyond the call, sir.
> Thanks
> -JW
> 
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox
> Sent: Thursday, October 28, 2004 3:42 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: RE: RE: Bad dotplot command?
> 
> Here is a quick hack at your problem: 
> 
> mdotplot mdint_bioc mdint_bioc_s median948 
> if mch==10 & inlist(nwafer,1,2,5,6,7,8)
> , center msymbol(none) mlabel(mlbl) mlabsize(tiny)
> mlabposition(0)
> 
> program mdotplot
> 	version 8 
> 	syntax varlist(numeric) [if] [in] [, combine(passthru) *] 
> 
> 	marksample touse
> 	qui count if `touse' 
> 	if r(N) == 0 error 2000 
> 
> 	tokenize `varlist' 
> 	local nvars : word count `varlist' 
> 
> 	forval i = 1/`nvars' { 
> 		tempname g`i' 
> 		dotplot ``i'' if `touse', `options' nodraw name(`g`i'')
> 		local G "`G' `g`i''"
> 	}
> 
> 	// ycommon wired in 
> 	local 0 , `combine' 
> 	syntax [, imargin(str) * ] 
> 	if "`imargin'" == "" local options "`options' imargin(zero)" 
> 
> 	graph combine `G', ycommon `options' 
> end 	
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> 

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