Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: -scatter and alpha-blending


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: -scatter and alpha-blending
Date   Thu, 27 Sep 2012 15:35:32 -0700 (PDT)

Unfortunately, Stata doesn't have transparent fills for scatterplot
markers, but you might be able to fashion a workaround similar to p. 605
of:

Stata tip 27: Classifying data points on scatter plots
    N. J. Cox. 2005.
    Stata Journal Volume 5 Number 4.
http://www.stata-journal.com/article.html?article=gr0023

The key would be to identify the observations that are completely
overlapping and make the markers darker in proportion to their relative
frequency.

If there are no or few completely overlapping points, an approach that
might work is using hollow circles as markers (msymbol(Oh) or
msymbol(oh)), because circles minimize overplotting.

David
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

www.mprinc.com


> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Francesco
> Sent: Thursday, September 27, 2012 3:13 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: -scatter and alpha-blending
> 
> Dear Statalist,
> 
> I would like to know whether it is possible to obtain in Stata a
> scatterplot
> with so called "alpha blending" :the markers are slightly transparent so
> that darker regions in the graph have a higher point density...
> Very much like this (In R) :
> http://stackoverflow.com/questions/7714677/r-scatterplot-with-too-many-
> points
> 
> What do you think?
> 
> Many thanks!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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