Announcement

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

  • overlaying graphs on 2 different scales

    G'Day Stata Users!

    I have a question on how I should approach this conundrum.
    I am graphing 2 data sets on one graph (overlaying each other) and the problem is a problem of scale. One data set are too small compared to the NHANES . What should my approach be? use a secondary axis? reduce both to a common scal, both axes? Here is a sample of the code I am using :


    twoway (histogram bmi if bmi<38.0 & ageyears>20 & gender==0 , color(gray) freq)(histogram bmxbmi if bmxbmi<38.0 & ridageyr>20 & riagendr==2, fcolor(none) lcolor(black) freq ), legend(order(1 "FORWARD" 2 "NHANES" ))

  • #2
    Originally posted by Hannah Jackson View Post
    G'Day Stata Users!

    I am graphing 2 data sets on one graph (overlaying each other) and the problem is a problem of scale. One data set are too small compared to the NHANES .
    Size of dataset does not determine the variation in scales. Please read the FAQ section on how to make meaningful posts for a better reply. You are expected to learn to use code delimiters for providing Stata codes, use of -dataex- to provide sample data examples.
    Roman

    Comment


    • #3
      understood. please feel free to remove post.

      Comment

      Working...
      X