Hi Statalist, I'm writing with what seems like an embarrassingly simple question which for some reason I haven't been able to sort out. I am using graph box to graph the duration of several different types of symptoms, which are not mutually exclusive:
(I know there's a lot of missing values, but that's expected and not my main concern at the moment--just want to illustrate for now the general structure of the data.)
Graphing these symptoms in a straightforward -graph box- statement yields the following:

The scheme is attempting to deal with the fact that I have a lot of variables and as a result is now looking deliciously like a funfetti cake. However, I have several colleagues who are colorblind, for whom this figure won't work, and I also don't have the kind of publication budget I'd need for a color figure like this. Rather than identify these boxes by color via a legend, I'd like to write the name of each symptom underneath each box, at a 45-degree angle, akin to this:

Since the symptoms are not mutually exclusive, I'm having challenges figuring out how best to implement these labels on the axis. There is no 'over' statement because variables are not mutually exclusive. I know this must be a very simple thing to do and if someone could take mercy on me and show me I'd be super grateful!
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(hr_duration eye_duration lung_duration heart_duration gi_duration neuro_duration msk_duration mh_duration skin_duration blad_duration mens_duration misc_duration) 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 . . . . . . . . . . . . . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0 . . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . 1 . . . . . . . . . . 0 . . . . . . . . . 8 . . . . . . . . . . . 10 . . . . . . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 . . . . . . . . . . . . . . 2 . . . . . . . . . . . . . . . . . . 2 . . 4 . . . . . . end label var hr_duration "Auditory" label var eye_duration "Ophthalmologic" label var lung_duration "Pulmonary" label var heart_duration "Cardiac" label var gi_duration "Gastrointestinal" label var neuro_duration "Neurological" label var msk_duration "Musculoskeletal" label var mh_duration "Psychiatric" label var skin_duration "Dermatologic" label var blad_duration "Genitourinary" label var mens_duration "Menstrual" label var misc_duration "General symptoms"
(I know there's a lot of missing values, but that's expected and not my main concern at the moment--just want to illustrate for now the general structure of the data.)
Graphing these symptoms in a straightforward -graph box- statement yields the following:
Code:
graph box hr_duration eye_duration lung_duration heart_duration gi_duration neuro_duration msk_duration mh_duration skin_duration blad_duration mens_duration misc_duration, ytitle("Length of symptom duration in months")
The scheme is attempting to deal with the fact that I have a lot of variables and as a result is now looking deliciously like a funfetti cake. However, I have several colleagues who are colorblind, for whom this figure won't work, and I also don't have the kind of publication budget I'd need for a color figure like this. Rather than identify these boxes by color via a legend, I'd like to write the name of each symptom underneath each box, at a 45-degree angle, akin to this:
Since the symptoms are not mutually exclusive, I'm having challenges figuring out how best to implement these labels on the axis. There is no 'over' statement because variables are not mutually exclusive. I know this must be a very simple thing to do and if someone could take mercy on me and show me I'd be super grateful!
Comment