Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scatter plot with markers weighted by repeated coordinates

    Hello,
    I'm trying to create a scatter plot with weighted markers by overlapping values. I want the size of the dot to be proportional to how many observations
    have the same coordinates in the scatter plot. I was wondering if you could help me giving me some ideas or examples.
    Thank you in advance!

  • #2
    I would use opacity for that. It avoids all kinds of problems regarding the scaling of the size of the bubbles. Opacity also deals with the case where the coordinates are not quite the same, but close enough so that the symbols overlap considerably.

    Code:
    sysuse nlsw88
    set scheme s1color
    scatter tenure grade, mcolor(%7)
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	115.2 KB
ID:	1540367
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      See the recent thread https://www.statalist.org/forums/for...size-revisited for a very similar question.

      Comment


      • #4
        Many thanks! I appreciate your comments. I'll keep in mind using different colour intensities.

        Comment

        Working...
        X