I was wondering if there's a way to replicate this R gglot graph in Stata in terms of making the -by- variable display in a horizontal fashion instead of vertical.
R ggplot here:



Example using Stata shows the -by- group in vertical:
Code:
webuse auto, clear recode rep78 (1/3 = 0 "M") (4/5 = 1 "F"), gen(gender) scatter weight length , by(gender) || lfitci weight length , by(gender, legend(off) note(" ")) col(%50) scheme(s1color) ylab(, grid) xlab(, grid) xsize(3)
Array
How do I rotate the Stata graph to look like the R ggplot graph above?
Thanks
0 Response to How to rotate Stata -by- group graph horizontally
Post a Comment