I have a data set in excel. There are total 9 columns:
col1 - member_id
col2 - A_timespent_in_hrs
col3 - B_timespent_in_hrs
col4 - total_timespent_in_hrs (col2 + col3)
col5 - A_pv (not to be considered in the problem)
col6 - B_pv (not to be considered in the problem)
col7 - total_pv (col5 + col6)(not to be considered in the problem)
col8 - A_timespent_in_hrs % wrt to total_timespent_in_hrs
col9 - B__timespent_in_hrs % wrt to total_timespent_in_hrs
I need to plot a graph in R (line graph) where i need to show the col8 ( A_timespent_in_hrs %) and col9 ( B_timespent_in_hrs %) on x axis and the count of col1 ( member_id) on the y axis.
Sample Data:
col1 col2 col3 col4 col5 col6 col7 col8 col9
6834682 0 534.27 534.27 0 2387 2387 0% 100%
46940 591.69 0 591.69 9508 0 9508 100% 0%
4903634 24.66 0 24.66 625 0 625 100% 0%
6777856 35.36 0 35.36 623 0 623 100% 0%
6327644 15.38 0 15.38 424 0 424 100% 0%
2581446 385.29 0 385.29 3743 0 3743 100% 0%
962509 158.6 0 158.6 3014 0 3014 100% 0%
6598387 0 87 87 0 304 304 0% 100%
6852254 0 301.04 301.04 0 1692 1692 0% 100%
Here i am trying to plot the percentage of col8 and col9 on x axis and count of col1 on y axis.
The graph should be of single line for example col8 starts from 0,0 cordinate with 100% value so col9 would be 0% at that point, similarly on any point on x axis col9 is 100% so the col8 would be 0% at that point.
And at the middle of the graph both col8 and col9 would be showing the 50% of the count of col1.
Note: col8 and col9 always give 100% on adding like (0 + 100, 1 + 99, 2 + 98, 3 + 97)
Thanks in advance,
Neel

