Hi All,
I have created several scatterplots and I have tried using the help function to understand how to create a proper legend but I keep getting error messages.
I used this command: graph twoway scatter iopcc_out mcholesterol3_out || lfit iopcc_out mcholesterol3_out0|| lfit iopcc_out mcholesterol3_out1, sort
Which is a scatterplot that shows the DV and the IV, but presented by Sex. The graph looks like this:
I would like to add in y and x axes, and instead of "fitted values" in the legend, I would like it to read "Male" and "Female"

I have created several scatterplots and I have tried using the help function to understand how to create a proper legend but I keep getting error messages.
I used this command: graph twoway scatter iopcc_out mcholesterol3_out || lfit iopcc_out mcholesterol3_out0|| lfit iopcc_out mcholesterol3_out1, sort
Which is a scatterplot that shows the DV and the IV, but presented by Sex. The graph looks like this:
I would like to add in y and x axes, and instead of "fitted values" in the legend, I would like it to read "Male" and "Female"
Comment