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
Combine 2 variables 'year', 'month' into 1 quarterly variableHi all, I need to analyze quarterly data, but I have only variables 'year' and 'month' in my data …
Fixed effect vs random effect vs OLSDear Sir, I have yearly panel data from 2008-2018 and 63 companies. My variables are: Dependent- ex…
xtgee outputHi how can I find the variance of the mean after xtgee? should I use SE to get Variance or is there …
Remove duplicate observationsHi all, I use data from the American Housing Survey and I have the following issue with preparing t…
Non stationary data transformation questionSo I have some panel data, investment in different regions over the course of a 7 years. It's non st…
Subscribe to:
Post Comments (Atom)
0 Response to Assigning colors to box plot with stratification
Post a Comment