Announcement

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

  • Add legend for Quantile plot grqreg

    ....
    Last edited by Shovkat Khodjaev; 28 Nov 2022, 07:31.

  • #2
    Joao Pedro Azevedo's -grqreg- hardcodes the legend off. You could try using the Graph Editor (see below) to turn it on, alter the code, or use Fernando Rios-Avila's -qregplot - which allows twoway options to be used.


    Code:
    clear
    sysuse auto
    qreg price mpg weight
    grqreg
    gr_edit plotregion1.graph1.legend.draw_view.setstyle, style(yes)
    gr_edit plotregion1.graph2.legend.draw_view.setstyle, style(yes)

    Comment


    • #3
      Dear Scott Merryman,

      Thank you very much for useful code

      Comment

      Working...
      X