Announcement

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

  • Symmetrical Jitter in Twoway Scatter

    Dear Stata Users,

    I am struggling to work out how to create non-random symmetrical jitter in my scatter plots.

    I have 50 data points in each category and there is lots of overlap between the different data markers. When I use jitter it appears messy - see attached. I am aiming for something like the second attached figure - is this possible in stata and if so, which command?

    Also, is there a way to include the bars for mean + 95%CI?

    Many thanks!
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	153.9 KB
ID:	1446738

    Click image for larger version

Name:	Screen Shot 2018-05-30 at 16.07.59.png
Views:	1
Size:	35.5 KB
ID:	1446737

  • #2
    stripplot (SSC) supports jitter, but typically displacing otherwise identical points left or right deterministically looks better.


    Code:
    sysuse lifeexp
    stripplot lexp, over(region) height(0.25) ms(Sh) stack center vertical bar(level(95)) yla(, ang(h))
    Click image for larger version

Name:	stripplot_lexp.png
Views:	1
Size:	17.9 KB
ID:	1446772

    Comment

    Working...
    X