Graphics Reference
In-Depth Information
graph hbar popk, over(division)
The graph hbar (horizontal bar)
command is often used to show the
values of a continuous variable broken
down by one or more categorical
variables. Note that graph hbar is
merely a rotated version of graph bar .
See Bar (107) for more details.
Uses allstates.dta & scheme vg s2c
N. Eng.
Mid Atl
E.N.C.
W.N.C.
S. Atl.
E.S.C.
W.S.C.
Mountain
Pacific
0
5,000
10,000
15,000
mean of popk
graph hbox popk, over(division)
We can show the previous graph as a
box plot using the graph hbox
(horizontal box) command. The graph
hbox command is commonly used for
showing the distribution of one or more
continuous variables, broken down by
one or more categorical variables. Note
that graph hbox is merely a rotated
version of graph box . See Box (157) for
more details.
Uses allstates.dta & scheme vg s2c
N. Eng.
Mid Atl
E.N.C.
W.N.C.
S. Atl.
E.S.C.
W.S.C.
Mountain
Pacific
0
5,000
10,000
15,000
20,000
Pop/1,000
graph dot popk, over(division)
The previous plot could also be shown
as a dot plot using graph dot .Dot
plots are often used to show one or
more summary statistics for one or
more continuous variables, broken down
by one or more categorical variables.
See Dot (193) for more details.
Uses allstates.dta & scheme vg s2c
N. Eng.
Mid Atl
E.N.C.
W.N.C.
S. Atl.
E.S.C.
W.S.C.
Mountain
Pacific
0
5,000
10,000
15,000
mean of popk
The electronic form of this topic is solely for direct use at UCLA and only by faculty, students, and staff of UCLA.
Search WWH ::




Custom Search