Announcement

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

  • Pointer on graph

    I generated the attached graph and want to put a marker pointing to the observation for the UK (upper left). Read the manual, searched online for help, but I could not get Stata to put a marker there. Any help would be appreciated. Thanks, Ric
    Attached Files

  • #2
    Ric:

    This is your graph displayed as a .png extension. Please see FAQ Advice #12 on why .gph extensions are not so good.

    Click image for larger version

Name:	euslaner.png
Views:	1
Size:	10.1 KB
ID:	1354869



    Although the marker label size is very small -- you did use mlabsize(tiny) -- I can see a label "UK" on the graph, so I am not clear what the problem is.

    The rest of FAQ Advice #12 gives suggestions on showing example data, the exact command syntax you used, etc.

    Comment


    • #3
      The command is: aaplot msy familyfarmpct1868 if europe==1,mlabel(contab) mlabsize(tiny)
      I used the graph editor to make the graph look like you posted it above Nick.
      I know that you can see the point for the UK. I was hoping to find a way to put an arrow or some other pointer to call attention to it, preferably by using the graph editor.

      Comment


      • #4
        I see. I don't know how to do this in the Graph Editor.

        aaplot (SSC) supports addplot(), so here is an example of its use.

        Code:
         
        sysuse auto
        aaplot mpg weight, addplot(pcarrowi 36 2040 40.5 2040)
        The coordinates define the start and end of each arrow.



        Comment

        Working...
        X