Hello. I am trying to do a twoway scatter graph. The first problem i faced was that the range was not the same at both the axis. I fixed this with the xscale, yscale command. This is my command now and it works:
graph twoway scatter TurnoutFOE TurnoutSOE, xscale(range(0 100)) yscale(range(0 100))
However, I would also like to show labels for my points on the graph. This can be done with and it works:
graph twoway scatter TurnoutSOE TurnoutFOE,mlabel(Countries)
But when I try do combine them I can not do it.
graph twoway scatter TurnoutFOE TurnoutSOE,mlabel(Countries), xscale(range(0 100)) yscale(range(0 100))
Gives me the message: Invalid varlist
graph twoway scatter TurnoutFOE TurnoutSOE, xscale(range(0 100)) yscale(range(0 100)), mlabel(Countries)
Gives me the message: Countries: may not use time-series operators on string variables
How do i solve this??
Furhtermore, I would like to also add a bisector. Meaning a 45degree line in the graph.
Can someone please help me of write the full command to make all this work?
Thanks
Andreas
Related Posts with Twoway Scatter help: Change range, show labels and Bisector line
Name of the current do fileIs there a way to get the name of the currently executing do-file into a macro? I had hoped to inclu…
Graph for interaction modelsHi, I am checking if some personality traits (Big Five), are interacting in an survey-experiment. T…
Help interpreting longitudinal mixed model interaction termHi all I have data from a randomized trial that measures the effect of an intervention group (0/1) …
Linear Lasso Regressions and Stata's "lasso linear" CommandHi, I have a methodological question concerning lasso regressions and the lasso linear command in S…
sts graph risktable order errorAll, I'm getting an error re-labeling the risktable variables. I've searched for solutions and have…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway Scatter help: Change range, show labels and Bisector line
Post a Comment