Box Plot

The command graph box variable1 creates a single box plot (for side by side box plots see the approriate page). You can create a horizontal version of the graph by using graph hbox variable1 instead.

This is the usual family of commands to add appropriate titles. Note that since there is only one box, there is no need for a xtitle it is already implied in the main title.

Finally, there may be some distracting outliers; let's take care of that. First, we specify that we are modifying the labels within the plot with marker. Next, we specify that the labels are specific to outliers and use an appropriate labeling category (e.g. year, country, etc) with (1, mlabel(country) msymbol(none) mlabpos(0)). The last two parts indicate that we want to suppress the symbols (no more dots), and place the labels centered on the former location of the dots.

graph box Variable1, title("Your Title") ytitle("Your" "Y Title", orientation(horizontal)) marker(1, msymbol(none) mlabel(Category) mlabpos(0))