Announcement

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

  • axis ticks as functions of actual values

    Dear all,

    Hi, I'm plotting y vs. x. Can I use axis ticks that are functions of x? So, if we plot y vs. x and the x-axis ticks are 1, 2, 3, 4, 5, can I force display 1, 4, 9, 16, 25 (so ticks are x^2)? I'd much appreciate any and all help. Thank you.

    Best,


    John

  • #2
    Yes. See http://www.stata-journal.com/sjpdf.h...iclenum=gr0032 and mylabels (SSC).

    Discussed on this forum just last week http://www.statalist.org/forums/foru...updated-on-ssc as a response to a thread you started yourself!

    Code:
    ssc inst mylabels
    mylabels 1 4 9 16 25, myscale(sqrt(@))  local(yla)
    ... yla(`yla')
    Last edited by Nick Cox; 07 Oct 2016, 00:48.

    Comment

    Working...
    X