Hi All,
I've used stripplot to create my boxplot with individual data points showing as well, which is how I wanted it. However, I'm considering given each box plot a specific colour for each age category (older and younger participants). Is this possible in stata, please?
The code I used was:
stripplot phcva, over (agegroup) by(type_of_blur, legend(off) row(1) compact note("")) box(barw(0.3) blc(black)) centre vertical stack jitter(3 3) mc(black) msize(small small) ms (o o) mc (orange_red blue) iqr whiskers() boffset(0.3) yaxis(1 2) yla(-0.2(0.2)1, nogrid ang(h) axis(1) format(%2.1f)) yla(-0.2(0.2)1, nogrid ang(h) axis(2) format(%2.1f)) xla(, labsize(small)) xsize(7) separate (agegroup)
I've used stripplot to create my boxplot with individual data points showing as well, which is how I wanted it. However, I'm considering given each box plot a specific colour for each age category (older and younger participants). Is this possible in stata, please?
The code I used was:
stripplot phcva, over (agegroup) by(type_of_blur, legend(off) row(1) compact note("")) box(barw(0.3) blc(black)) centre vertical stack jitter(3 3) mc(black) msize(small small) ms (o o) mc (orange_red blue) iqr whiskers() boffset(0.3) yaxis(1 2) yla(-0.2(0.2)1, nogrid ang(h) axis(1) format(%2.1f)) yla(-0.2(0.2)1, nogrid ang(h) axis(2) format(%2.1f)) xla(, labsize(small)) xsize(7) separate (agegroup)
Comment