Announcement

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

  • how to custom plot axis with different scaling?

    Is there any option with Stata that can achieve the same goal as this in R: labels = function(y) {paste0(y/1000000,'million')}?

    Basically, I want to show big numbers on y scale but shown as in millions. Cannot manually set the scale because I have to do multiple plots.

    Thanks!

  • #2
    Look at mylabels from SSC

    Code:
    ssc install mylabels
    help mylabels

    Comment


    • #3
      Originally posted by Andrew Musau View Post
      Look at mylabels from SSC

      Code:
      ssc install mylabels
      help mylabels
      Thank you! I just looked it up, "myscale" is the option I'm looking for. But is there a way to circumvent mylable with the scale as input? Because I am drawing a series of plots, I cannot adjust a different set of ranges every time

      Comment


      • #4
        Can you give an example with two or three plots with different ranges showing what you want? You can use one of Stata's datasets, e.g.,

        Code:
        sysuse auto, clear

        Comment


        • #5
          Andrew Musau is right, We need to see examples. Otherwise https://www.statalist.org/forums/for...dable-from-ssc may give you some ideas.

          Comment

          Working...
          X