Hi,
I have data such as:
I want to create a box plot of the first four variables over treatment. The problem I am having is that the legend is using the label descriptions which are quite long, and not the variable names. This is causing the legend to cut off and the graph to be very narrow.
Using:
I am getting: *please see the post below*
I have data such as:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(Y1skills_academicstudies Y1skills_doctor Y1feedback_helpful Y1skills_overall treatment) 2 1 2 4 0 1 1 1 1 0 1 1 1 1 0 3 3 1 4 0 3 2 1 4 0 5 5 4 7 0 2 1 1 3 0 2 2 1 3 0 2 2 2 5 0 1 1 1 1 0 1 1 3 3 0 1 2 1 3 0 1 1 1 1 0 4 3 2 6 0 6 6 6 8 0 3 2 1 3 0 3 3 1 2 0 2 1 1 2 0 2 1 3 3 0 5 5 6 7 0 5 5 2 6 0 4 6 6 4 0 1 1 2 2 0 1 1 1 2 0 6 6 5 7 0 2 2 6 2 0 6 5 6 6 0 2 2 3 3 0 1 2 1 4 0 6 3 5 7 0 6 5 1 6 0 1 3 1 3 0 6 5 5 7 0 3 2 4 5 0 5 4 5 5 0 4 1 2 6 0 2 1 2 2 0 1 1 2 1 0 3 3 1 . 0 7 5 6 8 0 3 3 2 2 0 5 5 6 6 0 5 5 5 6 0 4 4 5 4 0 5 3 1 6 0 2 2 2 1 0 3 3 5 2 0 3 3 5 3 0 5 3 3 4 0 4 6 3 6 0 2 2 2 3 0 1 1 4 1 0 2 2 1 3 0 2 2 4 2 0 1 1 1 2 0 6 6 6 9 0 2 2 7 4 0 6 3 2 8 0 1 1 1 1 0 5 2 2 6 0 2 1 2 3 0 6 6 6 8 0 5 5 3 5 0 5 5 6 6 0 1 1 1 3 0 7 5 6 7 0 2 4 2 3 0 7 7 6 9 1 7 7 7 9 1 5 5 5 6 1 5 4 3 5 1 3 3 3 4 1 3 3 4 7 1 6 5 7 8 1 7 6 6 7 1 5 5 6 7 1 5 5 5 6 1 6 6 6 7 1 6 5 4 7 1 6 6 3 7 1 6 5 5 8 1 6 6 5 7 1 5 2 7 7 1 6 6 4 7 1 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