Dear Forum,
I would like to box plot sCD163 over HIV status (positive vs. negative) (i) stratified by levels (tertiles) of cardiac function (tert_mv2) as (ii) well as overall, ie, just HIV positive vs HIV negative (total). Second - and for which I need some advice - I would like to color code the HIV status (positive = red; negative = blue).
I have the below copied box plot without colors written with the following command:
- graph box cd163, over(hiv) over(tert_mv2, total)
To add color, I have tried the following command which, unfortunately, then changes the plot as also copied below.
- graph box cd163, over(hiv) over(tert_mv2, total) nofill asyvars bar(1, color(blue)) bar(2, color(red))
I will very much appreciate any suggestions you may have on how to go about this.
Thanks in advance.
Itai
Array
Array
Related Posts with Assigning colors to box plot with stratification
estimating tfpI have a panel of firm level data, and am trying to estimate firm level total factor productivity by…
Asking for definition of various types of treatment?Borusyak, 2021 has a sentence We further discuss the implications of our results when treatment …
Replacing Missing Observations With Older Available DataDisclaimer: I understand this might not be a statistically sound process, this is purely to better u…
spxtregress, fe with time fixed effectsHi, I'm using spxtregress, fe to fit a model with a spatial lag of the dependent variable. I would …
Encode many observationsDear all, I have just concluded cleaning up my dataset with around 848,950 observations. Neverthele…
Subscribe to:
Post Comments (Atom)
0 Response to Assigning colors to box plot with stratification
Post a Comment