Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • graph box plot with 6 variables and two groups

    Hey STATA

    I have tried (now for a couple of hours) to make an graph hbox with different variables
    1.RVSWi_rest_gangSVi
    2.PAcompliance_rest
    3.papsys_rest
    4.RVSWi_200w_gangSVi
    5.PAcompliance_200w
    6.papsys_200w


    These variables are measured in an exercise test where the first 3 is at rest and the last 3 is during exercise. Now, I made a group (EROgroup) dividing these groups depending on there heart regurgitation.

    What im trying to do is graph hbox plot in one graph where I have three variables at divided by the EROgroup at REST and the last three divided by the EROgroup at EXERCISE.

    what I have done until now is making to box plot and graph combine. but is it possible to make the wanted graph??

    graph hbox RVSWi_rest_gangSVi PAcompliance_rest papsys_rest_outlier , ///
    legend(order(1 "Right Ventricle Stroke Work Index (g/(m2*beat))" 2 "Pulmonary Artery Compliance (ml/mmHg)" 3 "Systolic Pulmonary Artery Pressure (mmHG)") rows(3)) ///
    over(EROgroup) title("Right ventricle function in MR") ///
    subtitle ("(46 preoperative MR patients divided by ERO)""") ///
    name(RVSWiboxplot_rest, replace)

    *box plot at exercise
    graph hbox RVSWi_200w_gangSVi PAcompliance_200w papsys_200w , ///
    legend(order(1 "Right Ventricle Stroke Work Index (g/(m2*beat))" 2 "Pulmonary Artery Compliance (ml/mmHg)" 3 "Systolic Pulmonary Artery Pressure (mmHG)") rows(3)) ///
    over(EROgroup) title("Right ventricle function in MR") ///
    subtitle ("(46 preoperative MR patients divided by ERO)""") ///
    name(RVSWiboxplot_200w, replace)
    Attached Files
Working...
X