You cannot give your trace file as a direct input to Xgraph. you have to give file with only two lines like
1 5
5 89
8 98 here first row is x axis 2nd is y axis for example save this file as graph.tr
now you can execute using xgraph graph.tr here instead of using random values you have to use your QOS valuse such as number of packets received or sent like that..