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

st: RE: Bad dotplot command?

From   "Wallace, John" <[email protected]>
To   <[email protected]>
Subject   st: RE: Bad dotplot command?
Date   Thu, 28 Oct 2004 16:38:19 -0700

Above and beyond the call, sir.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Thursday, October 28, 2004 3:42 PM
To: [email protected]
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)

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' 

[email protected] 

*   For searches and help try:

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