Hi,
Sorry to be that guy, but I can't find any stata help files or forum posts to clear this up. If anyone can recommend a change to my code that would be great.
I've overlaid two lowess scatter plots onto one graph using the code below quite easily:
lowess d_Originality_Lv Complex_Problem_Solving_Lv , addplot(lowess d2_Originality Complex_Problem_Solving_Lv)
However, when the graph is generated it shows only the observations for the first variable, 'd_Originality_Lv', against the independent var 'Complex_Problem_Solving_Lv'. The lowess lines show the relationship I want to convey, but if I could have observation dots for both the sets of data overlaid in slightly different colours, this would give some substance to the different forms of the lowess lines.
I can't find any way to code the legend or graph code to show both sets of observations. Also, the output is okay right now and I wouldn't want to specify a legend(...) command and lose the other legend elements which appear automatically because I don't quite know how to code them myself. I could potentially work it out if need be, though.
Thanks in advance.
Related Posts with Simple addplot syntax - how do I graph 2 sets of observations on one graph?
How to execute some commands in .do according to conditions?I want to rename the varlists in different files having different the numbers of varlists. e.g…
bar graph over two variables: unable to adjust the color of barsHi experts; I am plotting a bar graph that has two variables. My code looks like below: #delimit ;…
STATA or other chat / IRC / live realtime help resource? Codementor?Hi all, I am a newcomer to STATA and diving in to the manuals tutorials helpfiles. and now recently …
dataset description that appears with 'describe' commandHi again folks, the describe command generates an overview of the dataset as well as "a brief descri…
forvalue index included in csv file nameHey everyone, I'm attempting to assemble a panel dataset using a handful of CSV files each of which…
Subscribe to:
Post Comments (Atom)
0 Response to Simple addplot syntax - how do I graph 2 sets of observations on one graph?
Post a Comment