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
Inclusion of Instrumental Variables in a fixed effects regression.Hi. I am currently looking into the influence of natural disasters on human capital outcomes, throug…
Multiple Tasks in a MacroI know how to write simpel code of a macro to complete one task: e.g. drop obervations whose var1 va…
Difference in Difference modeling. How to separate the treated group from the control group in the datasetHello, can anyone please help me on the command to differentiate my control group from treated group…
Remove axes from twoway with by()Hi, Any ideas on how to remove the x-axis from all panels in a twoway graph with the by-option? I h…
Merged dataset but converted date variables inaccurateHi I have two datasets, one is compustat data and the other is covenant violations (from Creditor C…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway Scatter help: Change range, show labels and Bisector line
Post a Comment