Hi all,
My name is Thomas Leirvik, and have a few questions about plotting using Stata (sorry for my non-identifying username).
I have a panel data with a script for a figure (files attached). The dataset contains 18 individuals (panel variable is 'id') over 42 years (time variable is 'year').
Individual 1 is observations, and individuals 2-18 contains simulated estimates for temperature and (solar) radiation.
The variables I want to plot are temperature and radiation.
However, some of the individuals belong to the same class of models: for example id=3, 4, 5, and 6 all belong to a particular type of Global Climate Model (GCM).
For the plot, I want a legend only for the class of model, not for each id.
Some other things:
1) The x-axis should start in 1964 and end in 2005 (not 1960 through 2010)
2) The meantemp should be dashed, not solid
3) I also want a title
I know I can do all this using the Graph editor, but it will be very time consuming, in particular when this is only the first of many figures for many variables.
I have also attached a figure where I did everything manually, which is the way I want the figure to look like.
Best,
Thomas Leirvik
Related Posts with Graph panel data
How to get Pseudo R2 for Heckman two stage model?Stata does not provide Pseudo R2 when I run hackman two stage model, could anyone help me how to gen…
Merge data1 to data2 between certain datesDear Stata Users, I need to merge data1 to data2 such that data1 is merged to data2 between two dat…
Saving pointer matrixes using -mata matsave-I am relatively new to the use of pointers in Mata and have thusfar been impressed with their utilit…
Help with a problem setStarted using Stata in my Quantitative Methods course, previous statistics course used R and Rstudio…
Finding out the reason for collinearityThis sounds very dumb actually. But I tried to control for treatment type (T1, T2, and T3) in the re…
Subscribe to:
Post Comments (Atom)
0 Response to Graph panel data
Post a Comment