Hello Stata users
I am quite new in Stata and try to create a range plot. My data set has 9 variables and 4 records. What I d like to have is a graph with 4 range plots (var1 - var2 / var3 - var4 / var5 - var6 / var7 -var8) for every year.
var1 var2 var3 var4 var5 var6 var7 var8 year
31.76 36.24 37.96 41.46 32.75 37.12 38.45 42.04 9
42.07 45.65 48.09 51.38 42.71 46.83 49.35 52.06 11
45.05 50.11 52.71 55.15 46.72 51.17 53.26 56 13
50.75 51.59 57.8 59.74 51.49 60.25 53.71 60.8 15
I typed the following command: twoway (rcapsym var1 var2 year) (rcapsym var3 var4 year) (rcapsym var5 var6 year) (rcapsym var7 var8 year)
The output graph looks almost fine, but I would like to have the range plots in parallel not in the same line. More precisely as the values at year 9 are all between 31 and 42, the range plots overlap in the graph. My preferred figure would group for every age the 4 range plots, so that there is no overlapping.
Thank you very much for your help!
Mathias Rechsteiner
I am quite new in Stata and try to create a range plot. My data set has 9 variables and 4 records. What I d like to have is a graph with 4 range plots (var1 - var2 / var3 - var4 / var5 - var6 / var7 -var8) for every year.
var1 var2 var3 var4 var5 var6 var7 var8 year
31.76 36.24 37.96 41.46 32.75 37.12 38.45 42.04 9
42.07 45.65 48.09 51.38 42.71 46.83 49.35 52.06 11
45.05 50.11 52.71 55.15 46.72 51.17 53.26 56 13
50.75 51.59 57.8 59.74 51.49 60.25 53.71 60.8 15
I typed the following command: twoway (rcapsym var1 var2 year) (rcapsym var3 var4 year) (rcapsym var5 var6 year) (rcapsym var7 var8 year)
The output graph looks almost fine, but I would like to have the range plots in parallel not in the same line. More precisely as the values at year 9 are all between 31 and 42, the range plots overlap in the graph. My preferred figure would group for every age the 4 range plots, so that there is no overlapping.
Thank you very much for your help!
Mathias Rechsteiner
Comment