Announcement

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

  • Leader Line for marker label in a plot

    HI,

    I see many posts about overlapping marker labels in a plot. I have tried everything with marker label options( size, position etc). I would like to know whether its is possible and how to produce a plot with leader lines for marker label like in the example below:


  • #2
    It's possible but not trivial. In principle each marker line can be drawn with another twoway command.

    Not the question, but I would use two or three character country abbreviations here. The alternative is a lot of work that your readers likely won't appreciate.

    Comment


    • #3
      Thanks Nick. I intend to use 3 character country code as you have suggested. Could you plea elaborate abut the twoway command for leader lines?

      My data:
      clear
      input str3 Countrycode byte WomnEvrScrnd double CCdeathsASR
      "RWA" 12 25.4
      "BEN" . 13.5
      "SLB" 16 20.3
      "MWI" 19 66.4
      end
      [/CODE]


      I am using :


      Code:
       twoway (scatter WomnEvrScrnd CCdeathsASR if GAVIeligibl1==1 , jitter(17) msymbol(circle) mlabel( Countrycode ) mlabsize (t
      > iny) mlabvpos(pos) mlabgap(0.7in)) (scatter WomnEvrScrnd CCdeathsASR if GAVIeligibl1==2 , jitter(17) msymbol(triangle) mlabe
      > l( Countrycode ) mlabsize (tiny) mlabvpos(pos) mlabgap(0.7in))

      It gives me this
      Click image for larger version

Name:	Screened Cancer Deaths.png
Views:	1
Size:	148.7 KB
ID:	1684513
      :


      Attached Files

      Comment


      • #4
        Code:
        help twoway pcspike

        Comment

        Working...
        X