Announcement

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

  • Add labels in twoway scatter plots

    Hi all,
    very simple question: I would like to add the labels to the variables I have in my twoway scatter plot, I have only 3 so it should be possible, but the yvar(addlabels) doesn't seem to work

    graph twoway (scatter yvar xvar, jitter(2) xlab(1991(5)2021) ylab(0(500)4000) subtitle("Subtitle") note("Source") ylab(,angle(0)) xlab(,angle(0))) (qfit yvar xvar, lw(thick) scheme(s1mono))

    ty so much!

  • #2
    where do you want those labels to appear?
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      If I understood right, let's say you wish to add label for the id for all points in the scatterplot, you just need to add in the option - mlab(idvar) - for that matter.
      Best regards,

      Marcos

      Comment


      • #4
        mlab(var) thank you so much Marcos!

        Comment


        • #5
          Thak you for informing the thread reached a satisfactory solution.
          Best regards,

          Marcos

          Comment

          Working...
          X