Box plot

Box plot

by Salvatore Spina -
Number of replies: 1

I am making a box plot graph with Stata 14. I have a categorical variable on the x-axis (CDR) and a continuous variable on the y-axis (NPI). When I generate the graph I can add/modify a title for the y-axis but there are no options for the x-axis. It shows the variables points and numbers in the x-axis but without title. I can make some modifications but the change that I make do not appear in any dialog box. How do I see the lines of code added during editing to add them to my do file?

NPI is a number between 0-144

CDR is 0, 0.5, 1, or 2.

The basic graph code line that I used is:

graph box NPI, over(CDR)

Thanks!

 

 

 

In reply to Salvatore Spina

Re: Box plot

by Wayne Enanoria -

If I am understanding your question correctly, you want a label for the x-axis of the box plot? Without knowing what your box plot looks like, you can try using the note or caption options with graph box.  Type "help title_options" in Stata for more details.