Dear all I want to produce a dotplot with 2 variables next to each other (two antigens), but in each variable I have a mix of individuals from 2 groups (cohort C and D). I would like to be able to distinguish in each variable the 2 groups by using 2 colours or two different symbols. The command "by" or "over" doesn't work for dotplots. I try to use the stripplot, and by using "separate" I am able to do that have the 2 cohorts differentiate by colour, but not only the plot is horizontal instead of vertical as it seams that some dots are missing. I am also able to distiguish by colour the 2 groups using a scatter plot, so I don't understand why cannot I do the same for a dotplot. In summary: Does anyone know how to get 2 colors or 2 different symbols for markers on the same dotplot column? My initial command was dotplot PT PBS, ytitle(SFU per million PBMC) ----- but all the dots as expected in the same plot have the same colour If I write: . dotplot PTX PBS, over(cohorts) only 1 variable may be plotted with by() r(198); But for stripplot: stripplot PTX PBS, separate(cohorts) This works, but not with the layout that I wanted. I would be very grateful for your help (I am a paediatrician doing a PhD, so my stats background is from medical school and courses, so sorry if it is a silly question) Kind regards Marta
-
Login or Register
- Log in with
Comment