Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: dot-dash-plot


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dot-dash-plot
Date   Mon, 19 Feb 2007 23:03:17 +0000 (GMT)

--- Scott Merryman <smerryman@kc.rr.com> wrote:
> Tufte's dot-dash-plot ("The Visual Display of Quantitative
> Information" page 133) could be created as:

Cool,
It might be improved a bit by adding a jitter to mpg:

sysuse auto,clear

gen wherex = 11
gen wherey = 3000
gen pipe = "|"
gen mpgjit = mpg + .4*invnorm(uniform())

twoway scatter mpg price , msize(small) || /// 
	scatter wherex price, ms(none) mlab(pipe) mlabcolor(black) /// 
	mlabpos(0) || ///
	scatter mpgjit wherey , ms(none) mlab(pipe) mlabang(vertical)/// 
	mlabcolor(black) mlabpos(0) || , ///
	legend(off) yscale(noline) ylabel(none) xscale(noline) ///
        xlabel(none) xtitle(Price)

Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


	
	
		
___________________________________________________________ 
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/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