Announcement

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

  • Connecting the means in a dot plot

    I am asked to create a dot plot with two means on each line - one for group A and the other for group B. My collaborators want there to be a line connecting just the 2 means, but not extending below or above them. I can easily get a dotted line from 0 to maximum, but I don't see how to get it just from A to B. Here is what I have so far:

    Code:
    graph dot (mean) *_want, ///
        over(role,  relabel(1 "Mental Health*" 2 "Heat Illness*" 3 "Vector-borne Illness*" 4 "Air-quality*" ///
            5 "Pollen*" 6 "Storm/flood Trauma*" 7 "Storm/flood Illness*" 8 "Water-borne Illness*" 9 "Food-borne Illness*")) ///
        groupyvars ///
        ytitle("Percentage reporting resources would be moderately or very helpful", size(small)) ///
        legend(pos(4) ring(0) size(small)) ///
        subtitle("*P<0.05 for Physician vs. NP/PA", pos(7) span size(small)) ///
        name(want_db, replace)
    Click image for larger version

Name:	want_db.tif
Views:	1
Size:	31.6 KB
ID:	1783653



    Any suggestions? Thanks
Working...
X