Graphics Reference
In-Depth Information
scatter workers2 faminc, mcolor(gs8)
The mcolor() (marker color) option is
used here to make the marker a middle
gray. Stata provides 17 levels of gray
named gs0 to gs16 . The darkest is gs0
(a synonym for black ), and the lightest
is gs16 (a synonym for white ).
Uses allstatesdc.dta & scheme vg s2c
15000
20000
25000
30000
1979 Median Family Inc.
scatter workers2 faminc, mcolor(lavender)
Here, we use the mcolor(lavender)
option to make the markers lavender,
one of the predefined colors created by
Stata. The next example illustrates
more of the colors from which you can
choose.
Uses allstatesdc.dta & scheme vg s2c
15000
20000
25000
30000
1979 Median Family Inc.
vgcolormap, quietly
This vgcolormap command is a
command that I wrote to show the
different standard colors available in
Stata all at once. We simply issue the
command vgcolormap , and it creates a
scatterplot that shows the colors we can
choose from and their names. See the
list of colors available in [ G ] colorstyle ,
and see how to get vgcolormap in
Appendix : Online supplements (382).
Uses allstatesdc.dta & scheme s2color
Color Map of Standard Stata Colors
black
gs0
gs1
gs2
gs3
gs4
gs5
gs6
gs7
gs8
gs9
gs10
gs11
gs12
gs13
gs14
gs15
gs16
white
blue
bluishgray
brown
cranberry
cyan
dimgray
dkgreen
dknavy
dkorange
eggshell
emerald
forest_green
gold
gray
green
khaki
lavender
lime
ltblue
ltbluishgray
ltkhaki
magenta
maroon
midblue
midgreen
mint
navy
olive
olive_teal
orange
orange_red
pink
purple
red
sand
sandb
sienna
stone
teal
yellow
ebg
ebblue
edkblue
eltblue
eltgreen
emidblue
erose
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