Announcement

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

  • Stata 9 - multiple plots on a scatter graph

    I'm trying to create a scatter plot graph that includes 3 different plots. I cannot find the commands or the option in the GUI interface of Stata 9 to do so. Can someone provide some advice on the command structure or the where to find this option in the GUI interface of Stata9? My multiple plots are created using "if" statements, but this would be a lot easier if i could find the option of just creating separate plots in the GUI interface and then include the if statements there.

    This is what I've tried so far.....

    graph twoway (lfitci trees elevation)(scatter trees elevation) if heightcatnum==1) (lfitci trees elevation)(scatter trees elevation) if heightcatnum==2 (lfitci trees elevation)(scatter trees elevation) if heightcatnum==3, ytitle(Average Percent Cover) xtitle(Elevation (m))

    Thanks in advance.

    Alicia

  • #2
    I don't know anything about the menus to advise if that is what you are asking.

    In any version of Stata since 8, you might start with something more like

    Code:
    separate trees, by(heightcatnum) veryshortlabel
    twoway scatter trees? elevation, legend(order(1 "1" 2 "2" 3 "3"))
    Good luck on adding three regression lines and confidence intervals to that without making a complete mess. But why not

    Code:
    twoway lfitci trees elevation || scatter trees elevation, by(heightcatnum)

    Comment

    Working...
    X