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, 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" <>
To   <>
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

Stata tip 27: Classifying data points on scatter plots
    N. J. Cox. 2005.
    Stata Journal Volume 5 Number 4.

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

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 Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794

> -----Original Message-----
> From: [mailto:owner-
>] On Behalf Of Francesco
> Sent: Thursday, September 27, 2012 3:13 PM
> To:
> 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) :
> points
> What do you think?
> Many thanks!
*   For searches and help try:

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