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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: RE: -scatter and alpha-blending


From   Francesco <cariboupad@gmx.fr>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: -scatter and alpha-blending
Date   Fri, 28 Sep 2012 00:41:10 +0200

thank you very much!

On 28 September 2012 00:35, David Radwin <dradwin@mprinc.com> wrote:
> 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/
*
*   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