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?
SVYSET and SVY:tab helpHello, I have the following two SPSS commands. This is what I have from the SPSS codebook: CSPLAN A…
Plotting interactions so their cumulative effects can be illustratedHi, I am trying to plot three categorical by continuous interactions on top of one another so that …
STATA coefplot: plot other coefficients benchmark to one coefficientI'm using coefplot to plot the coefficients on xlag3, xlag2, xlag1, x, xlead1,xlead2,xlead3 from my …
Graph bar for categorical variable, but sorted in prespecified orderThis is a stunningly simple problem and I know there is a stunningly simple answer, but I can't figu…
Treat numeric variables as factor variablesI have a dataset with 3500 companies. Each company has a unique company ID (variable name is id), wh…
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