Stata 15 help for gr7box

help gr7box (out-of-date command) -------------------------------------------------------------------------------

Warning

This help file documents the old version of Stata's graph command. See graph for the modern version.

Stata runs the old version of graph whenever graph is invoked under version control (see version) or when you use the graph7 or gr7 command.

Graph box-and-whisker plots (graph, box command)

{graph7 | gr7} [varlist] [weight] [if exp] [in range], box [common_options [no]alt vwidth root]

common_options See help ------------------------------------------------------ title and axes options gr7axes symbol and line options gr7sym color and shading options gr7color saving, printing, & multiple image options gr7other ------------------------------------------------------

by is allowed; see by.

Description

graph7 ... , box ... specifies a box-and-whisker plot. Up to 6 variables may be specified. For an introduction to graph7, see graph7.

Options unique to box

[no]alt forces the labeling of groups to be on single or multiple lines. graph7 chooses whether the text labeling each box should be on the same line or instead alternative between two lines. If you do not like graph7's choice, [no]alt allows you to enforce your preferences. alt forces the staggered look, whereas noalt forces the single-line approach.

vwidth makes the width of each box proportional to the number of observations.

root is used only with vwidth; it specifies the width of the box is to be made proportional to the square root of the number of observations.

Examples

. graph7 y x, box (graphs box-and-whiskers for y and x)

. graph7 y, box by(id) (graphs box-and-whiskers for y by id groups)

. graph7 y x, box by(id) (graphs it by id for both y and x)

. gr7 tempjan, box by(region) total ylabel s(o) vwidth yline(32) ylabel(0 16 to 80) t2("width proportional to # of cities") ti(Box Plots by Census Division) l1(Jan. temp. in Fahrenheit)

Also see

The eight graph7 types are specified as options. The other seven types are

Option Graph type See help ---------------------------------------------------- histogram histogram gr7hist twoway Two-way scatterplot gr7twoway matrix Two-way scatterplot matrix gr7matrix oneway One-way scatterplot gr7oneway star Star chart gr7star bar Bar chart gr7bar pie Pie chart gr7pie ----------------------------------------------------

Help: [G-2] graph7, gr7axes, gr7color, gr7other, gr7sym; [R] lv


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index