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
Stata Graph - scheme burd not foundHi I am trying to use the following command to formate my Stata graph. grstyle init grstyle color…
Multiple imputation and stsum by groupsI have a dataset with multiple imputations in which I have performed Cox regression: mi stset outda…
Duplicates in very large datasetHi all, I am trying to merge two huge datasets. To do so, I am generating a unique identifier as C…
Most Common Medication Unweighted and WeightedHello, I'm currently working with NHANES data attempting to combine multiple survey years together …
Modelling Policy Measures in Fixed Effects Panel Regression?Dear all, I have a general question regarding the modeling of policy measures: I am investigating …
Subscribe to:
Post Comments (Atom)
0 Response to Assigning colors to box plot with stratification
Post a Comment