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
calculating frequency of events by age-classHello stata-users, I need to create a two column dataset by age-class and number of events. I can d…
Counting Instance of a variable and returning averageI am a student and new to Stata. Any help is appreciated. I have a data set with age and weight. I …
Creating an expression that tells marginal impact of moving one independent variable to another independent variable.I have been working on a project over the last few months. The idea of this project is looking at ML…
Dropping certain observations of a variable in a specified rangeI want to drop only certain observations of l_growth for each naic that are between 1997Q1 and 2009Q…
change from row to collumn without reshapehi I have a long data. i would like that each categorie of one variable "class" became a collumn, wi…
Subscribe to:
Post Comments (Atom)
0 Response to Twoway Scatter help: Change range, show labels and Bisector line
Post a Comment