I have been trying to make boxplots over a categorical variable. There are 18 categories; however, the graph only forms boxplots for 17 of the categories. I am unsure as to why this error is occurring. Any advice or help is appreciated!
graph box age_weeks , over(vaccines1, gap(*1) label(labsize(vsmall) angle(90))) allcategories showyvars asyvars leg(off) noout graphregion(color(white)) box(1, color(green%50) lcolor(green)) box(2, color(green%50) lcolor(green)) box(3, color(yellow%50) lcolor(yellow)) box(4, color(yellow%50) lcolor(yellow)) box(5, color(yellow%50) lcolor(yellow)) box(6, color(yellow%50) lcolor(yellow)) box(7, color(orange%50) lcolor(orange)) box(8, color(orange%50) lcolor(orange)) box(9, color(orange%50) lcolor(orange)) box(10, color(orange%50) lcolor(orange)) box(11, color(cyan%50) lcolor(cyan)) box(12, color(cyan%50) lcolor(cyan)) box(13, color(cyan%50) lcolor(cyan)) box(14, color(cyan%50) lcolor(cyan)) box(15, color(red%50) lcolor(red)) box(16, color(red%50) lcolor(red)) box(17, color(red%50) lcolor(red)) box(18, color(purple%50) lcolor(purple)) ylab(0 (10) 100, nogrid labsize(vsmall)) ytitle("Age at Vaccination (Weeks)", size(small))
graph box age_weeks , over(vaccines1, gap(*1) label(labsize(vsmall) angle(90))) allcategories showyvars asyvars leg(off) noout graphregion(color(white)) box(1, color(green%50) lcolor(green)) box(2, color(green%50) lcolor(green)) box(3, color(yellow%50) lcolor(yellow)) box(4, color(yellow%50) lcolor(yellow)) box(5, color(yellow%50) lcolor(yellow)) box(6, color(yellow%50) lcolor(yellow)) box(7, color(orange%50) lcolor(orange)) box(8, color(orange%50) lcolor(orange)) box(9, color(orange%50) lcolor(orange)) box(10, color(orange%50) lcolor(orange)) box(11, color(cyan%50) lcolor(cyan)) box(12, color(cyan%50) lcolor(cyan)) box(13, color(cyan%50) lcolor(cyan)) box(14, color(cyan%50) lcolor(cyan)) box(15, color(red%50) lcolor(red)) box(16, color(red%50) lcolor(red)) box(17, color(red%50) lcolor(red)) box(18, color(purple%50) lcolor(purple)) ylab(0 (10) 100, nogrid labsize(vsmall)) ytitle("Age at Vaccination (Weeks)", size(small))

Comment