While playing around with some of the options for box-plots, I discovered under some circumstances, grid lines I request are not displayed. And I cannot see any obvious reason why not. The problem appears to occur when I set the range of y-values too far outside the range that occurs by default.
I guess the first step is to find out if others can duplicate what I'm seeing. See below for a small demo based on an example in the help system.
Cheers,
Bruce
I guess the first step is to find out if others can duplicate what I'm seeing. See below for a small demo based on an example in the help system.
Cheers,
Bruce
Code:
* Example from -help graph box- * Using Stata IC 15.1 for Windows clear * sysuse bplong graph box bp, over(when) over(sex) /// ytitle("Systolic BP") /// title("G1") /// ylabel(, labsize(small) angle(horizontal)) graph rename g1 graph box bp, over(when) over(sex) /// ytitle("Systolic BP") /// title("G2") /// ylabel(120(10)190, labsize(small) angle(horizontal)) graph rename g2 graph box bp, over(when) over(sex) /// ytitle("Systolic BP") /// title("G3: Missing gridline at 200") /// ylabel(120(10)200, labsize(small) angle(horizontal)) graph rename g3 graph box bp, over(when) over(sex) /// ytitle("Systolic BP") /// title("G4: Missing gridlines at 110 & 200") /// ylabel(110(10)200, labsize(small) angle(horizontal)) graph rename g4 graph combine g1 g2 g3 g4, xsize(20) ysize(15) graph rename g1234 * Redo graph 4, but add 'grid' sub-option explicitly graph box bp, over(when) over(sex) /// ytitle("Systolic BP") /// title("G4b, Missing gridlines at 110 & 200") /// ylabel(110(10)200, grid labsize(small) angle(horizontal)) graph rename g4b * Result: grid lines still missing at 110 and 200.
Comment