xaxis1. xaxis1.reset_rule, tickset(major) ruletype(none) Edit only if you know what you are doing. Unless the number of time points is small, axis labels are usually given only for selected times. File created by Graph Editor Recorder. It isn't possible to use this as code after my original twoway code so that it adds those changes. If I run it in stata I get this code (my changes). tsline kstock if company 1, xaxis (1 2) xla (1940 'start', axis (2) grid glcolor (red)) xtitle ('', axis (2)) So, you must declare that you want two x axes. It's at the top of the line, which seems the essence here. Other users who have found the question cross-posted are encouraged to share the links as a reply as well. 1 Answer Sorted by: 2 I would just use an axis label on the top axis for this purpose. If you've asked a question, let people know where else you asked the question and what your solution(s) were! When you post a question on another platform, include those links in your questions or as a reply (if it's Discord, just mention it).See the sticked "READ ME: How to best ask for help in /r/Stata" post on how to comment here if all else fails. Make sure to include the word "Stata" in your search query. Perform a web search for your question prior to posting here. Stata's online community has been active for many years and many questions and solutions are documented on StataList, which are highly indexed on contemporary search engines (e.g., Google). Stata has extensive and complete documentation you can read before posting here (and you can type help followed by the command name in console to see it, e.g. In addition to these benefits, there are options we can use that understand that the x axis is a date variable and are much easier to use. Next, note that the labels for the x axis are labeled much better with more logical values having been chosen. This is not a place to find Stata tutoring. This is because Stata knew, from the tsset command, what the time variable was for this data file. Do not request that the /r/Stata community do your homework for you. Assume good faith questions and comments. Be nice when posting or commenting to a post.Let’s use a file called autolab that does not have any labels. The Code Block on Discord (run by Asjad Naqvi of The Stata Guide) Stata allows you to label your data file ( data label ), to label the variables within your data file ( variable labels ), and to label the values for your variables ( value labels ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |