Hello guys,
I need to create a chart with 2 Y axes. One axis is the total number of fights and the other total number of days for by time (pre , during, and post) by different group. My data is in a wide format and it is at the student level. The main idea is to see the total number of fights each group was involved (sum) and also the total number of days. I could generate two different charts but I would like to combine them. One Y axis can be bars (fights) and the other lines (days). After reading
, I learned that I need to collapse my data first in order to create this type of chart. I reshaped and collapsed my data to create the dataset below.
Thank you in advance,
Marvin
I need to create a chart with 2 Y axes. One axis is the total number of fights and the other total number of days for by time (pre , during, and post) by different group. My data is in a wide format and it is at the student level. The main idea is to see the total number of fights each group was involved (sum) and also the total number of days. I could generate two different charts but I would like to combine them. One Y axis can be bars (fights) and the other lines (days). After reading
HTML Code:
http://www.stata-journal.com/sjpdf.html?articlenum=gr0047
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte era str5 unit int(fights days) 1 "prog1" 320 10149 2 "prog1" 105 1696 3 "prog1" 153 5368 1 "prog2" 36 1282 2 "prog2" 8 194 3 "prog2" 32 593 1 "prog3" 118 10289 2 "prog3" 15 3863 3 "prog3" 168 13881 end
Marvin
Comment