Hello all,
I'm trying to graph some raw data of two variables man hours (y-axis) and cumulative production (x-axis).
This was working just fine:
Now, I need to overlay the same data from a few different companies. To make the comparison stronger, I wanted to add in time as another variable (ideally on the x-axis). For instance:
input str8 Company float ID str9 Time double mhpp float cpn
"Ford" 1 "01/1941" 10 100
"Ford" 1 "02/1941" 9 160
"Ford" 1 "03/1941" 8 190
"Goodyear" 2 "01/1941" . .
"Goodyear" 2 "02/1941" . .
"Goodyear" 2 "03/1941" 9 200
"Buick" 3 "01/1941" . .
"Buick" 3 "02/1941" 7 150
"Buick" 3 "03/1941" 6.5 200
In the above data, Ford is producing for the entire period, whereas Goodyear starts production two months later. Ideally, the graph would plot the mhpp on the y-axis, the cpn and time on the x-axis (so that I can see when companies start production at later dates and how their production compares in Time).
Does anyone have any ideas on how to do this?
I'm trying to graph some raw data of two variables man hours (y-axis) and cumulative production (x-axis).
This was working just fine:
Code:
twoway line mhpp cpn
input str8 Company float ID str9 Time double mhpp float cpn
"Ford" 1 "01/1941" 10 100
"Ford" 1 "02/1941" 9 160
"Ford" 1 "03/1941" 8 190
"Goodyear" 2 "01/1941" . .
"Goodyear" 2 "02/1941" . .
"Goodyear" 2 "03/1941" 9 200
"Buick" 3 "01/1941" . .
"Buick" 3 "02/1941" 7 150
"Buick" 3 "03/1941" 6.5 200
In the above data, Ford is producing for the entire period, whereas Goodyear starts production two months later. Ideally, the graph would plot the mhpp on the y-axis, the cpn and time on the x-axis (so that I can see when companies start production at later dates and how their production compares in Time).
Does anyone have any ideas on how to do this?
Comment