Announcement

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

  • Combining graphics -- adding median values to scatter plots?

    I'm afraid this is a fairly basic question but I have RTFM'd as best as possible. (I'm using Stata 13, btw)
    In order to show the range of values on a measure in 3 different cohorts, I've plotted them using

    scatter measure cohort, msymbol(circle) mfcolor(cyan) mlcolor(black) jitter(4))

    Which provides me with three columns of measure, showing the individual's values with enough jitter for clarity.

    I'd like to overlay lines indicating the median and quartile ranges on those, but I can't figure out a way to do it. dotplot doesn't seem to have the required orientation or overlay capacity; boxplot doesn't seem to be combinable with scatter.

    Does anyone have any useful ideas, even if it's simply pointing me to a section of the manual that I have somehow missed? I found similar questions in the pre-April 2014 archives, but not with effective answers.

    Thanks!

  • #2
    Code:
    search stripplot
    Perhaps

    Code:
    stripplot measure, over(cohort) cumul cumprob box centre vertical mcolor(cyan)
    Quantile-box plots make jitter unnecessary.

    Searching the forum for Parzen should help. Ignore a few false positives: you will see examples.
    Last edited by Nick Cox; 07 Sep 2017, 22:40.

    Comment

    Working...
    X