Announcement

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

  • title for y axis

    Dear all,
    I need some help with Y axis title of scatter plots. i am creating a scatter plot by gender as seen below. in the figure i only have one Y axis. is it possible to add y axis for the male graph without having to create the 2 graphs separately? the reason is that when i chnage the range or scale in feale y axis it only does it for the female graph.
    code
    Code:
    twoway (scatter hba1c plasmasaaul)(lfit hba1c plasmasaaul), ytitle(BMI(Kg/m^2)) by(gender)
    Click image for larger version

Name:	Slide1.jpg
Views:	1
Size:	68.4 KB
ID:	1494446

  • #2
    You may use the if clause, and get both female and male under the same axis. Also, you may use the option - yaxis() - and define which is which.
    Best regards,

    Marcos

    Comment

    Working...
    X