Good evening
I would like your advice regarding improving the presentation of this graph, as you can see there are 4 categories (different coloured: blue - red- green - black)
I generating the graph using this code
Code:
graph box v1 v2 v3 v4 if procedure==1, bar(1, fcolor(blue)) marker(1, mcolor(blue)) /// bar(2, fcolor(red)) marker(2, mcolor(blue)) /// bar(3, fcolor(green)) marker(3, mcolor(blue)) /// bar(4, fcolor(grey)) marker(4, mcolor(blue)) /// ytitle(Duration in mins) /// legend(order (1 "v1" 2 " v2" 3 "v3" 4 "v4") ring(1) row(1) pos(6))
Unfortunately looking at this graph, it looks like it's 0.
I then tried, ok let me just present v2-v4 (as these have small ranges), I also tried to edit the scale
Code:
graph box v2 v3 v4 if procedure==1, ylabel(0(2)280) ytick(0(2)280) bar(1, fcolor(blue)) marker(1, mcolor(blue)) /// bar(2, fcolor(red)) marker(2, mcolor(blue)) /// bar(3, fcolor(green)) marker(3, mcolor(blue)) /// ytitle(Duration in mins) /// legend(order (1 " v2" 2 "v3" 3 "v4") ring(1) row(1) pos(6))
Question 1:
What is your advice?
Question 2:
In addition, I would like to plot the same graph but for procedure ==2 , and ideally I would like to superimpose both graphs of procedure = 1 and procedure = 2 onto each other, so there are for eg, 2 blue box plots adj to each other, 2 red box plots adj to each other, 2 green box plots adjacent to each other, 2 black box plots adjacent to each other, which would look like this:
Is it possible?
I have tried
Code:
graph box inactive light_activity mod_to_vigorous_activity vigorous_activity if procedure ==1 || graph box inactive light_activity mod_to_vigorous_activity vigorous_activity if procedure ==2 //error
Comment