Announcement

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

  • mlabel in scatter plot

    Dear Stata users,

    I'm trying to produce a graph with both scatter and lfit commands. I would like to have each data point labeled and hence include the mlabel(varlist). But the error popped up saying that mlabel is not allowed. Does anyone knows what's the problem and is there any solution to this? Following is my code:

    Code:
    twoway scatter R RP || lfit R R, mlabel(asset)
    Any help is much appreciated!

  • #2
    -mlabel(...)- is an option of scatter. Try:

    Code:
    twoway scatter R RP, mlabel(asset) || lfit R RP
    Stata/MP 14.1 (64-bit x86-64)
    Revision 19 May 2016
    Win 8.1

    Comment


    • #3
      Hi Carole, many thanks for your solution! It works perfectly!

      Comment

      Working...
      X