I'm trying to get a box plot comparing multiple variables over one category that is organised so that the box plots of one variable are next to each other instead of grouped by category. For instance, if you use the following code
you see Price Weight and Displacement of the Domestic Category followed by Price Weight and Displacement of the Foreign Category
I need the box plot to be grouped by variables instead, so it would appear in the following order Price - Domestic and Foreign, Weight - Domestic and Foreign, Displacement - Domestic and Foreign
Is there a way to do this? I have tried using asyvars, but it doesn't appear to work.
Thanks
Code:
sysuse auto, clear graph box price weight displacement, over(foreign)
I need the box plot to be grouped by variables instead, so it would appear in the following order Price - Domestic and Foreign, Weight - Domestic and Foreign, Displacement - Domestic and Foreign
Is there a way to do this? I have tried using asyvars, but it doesn't appear to work.
Thanks
Comment