...continued from Part 1...

In

So, the examples below show how to use -statplot- options to create wrapped labels. I hope to create an option to help make this a part of -statplot- at some point in the future, but for now, the code below is a good template for helping you to automate wrapping labels. This can be extended to other plotting packag…

**Part 1**of this post covered some advanced examples of -statplot-, focusing on the use of combinations of*over()*and*by()*options.In

**Part 2**, I examine some strategies to use -statplot- with really long variable and/or value labels. Recently, I was using -statplot- to create some tables in a paper where some of the labels in the tables needed to be the (longish) question and answer choice text, I discovered how long labels can really be a pain for graphs. This is a problem for any graph in Stata, regardless of whether your labels are in the legend or at the axis; however, my preference is that long labels (up to a limit) look better at the axis.So, the examples below show how to use -statplot- options to create wrapped labels. I hope to create an option to help make this a part of -statplot- at some point in the future, but for now, the code below is a good template for helping you to automate wrapping labels. This can be extended to other plotting packag…