The code below produces a boxplot with the grouping variable of year. The grouping variable is displayed at the top of the graph where the fill in odd years in blue and no fill in the even years. How do I change the code so that a grey fill color is used in odd years and keep the no fill (or white) in even years? I tried the cblockvar= option for the block variable legend, but have not been able to change the color.
check the options of cbox=(variable) and cboxfill=(variable) from the tech documentations. these will allow you to assign desired color and fill to a variable (years in your situation). you will need to create this color variable in your dataset precip_boxplot1.