10.08.2013 Views

Introduction to Stata 8

Introduction to Stata 8

Introduction to Stata 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A text block is placed in the plot area by giving its y and x coordinates; place(c) (the<br />

default) means that the coordinates apply <strong>to</strong> the center of the text block; place(se) that<br />

they apply <strong>to</strong> the block's southeast corner. See example in Figure 1 and the twoway line<br />

plot, section 14.7:<br />

... , text(90 69 "1999-2000")<br />

14.6. Appearance of markers, lines, etc.<br />

Options and their arguments for defining the appearance of lines, bars and markers:<br />

Lines Markers<br />

Element Color Pattern Width Symbol Size<br />

Legend etc. color()<br />

fill fcolor()<br />

outline lcolor() lpattern() lwidth()<br />

Bars, areas bcolor()<br />

fill bfcolor()<br />

outline blcolor() blpattern() blwidth()<br />

Markers mcolor() msymbol() msize()<br />

fill mfcolor()<br />

outline mlcolor() mlwidth()<br />

Connecting<br />

lines clcolor() clpattern() clwidth()<br />

Arguments: none<br />

Grayscale:<br />

black<br />

gs0 (black)<br />

..<br />

gs16 (white)<br />

white<br />

Marker symbols<br />

blank<br />

l or solid<br />

- or dash<br />

_ or longdash<br />

shortdash<br />

dot<br />

dash_dot<br />

Formula, e.g.<br />

"-."<br />

"--.."<br />

none<br />

*1.3<br />

130% of<br />

default<br />

42<br />

i invisible<br />

O circle<br />

D diamond<br />

S square<br />

T triangle<br />

p point<br />

+ plus<br />

X cross<br />

Small:<br />

o d s t x<br />

Hollow: Oh<br />

*0.7 70%<br />

of default<br />

Markers are defined by symbol: msymbol(), outline colour: mlcolor(), fill colour<br />

mfcolor() and size msize(). To define a hollow circle:<br />

twoway (scatter mpg weight , msymbol(Oh))<br />

A hollow circle (Oh) is transparent. Obtain a circle with a non-transparent white fill by:<br />

twoway (scatter mpg weight , msymbol(O) mfcolor(white))<br />

Connecting lines<br />

The twoway line and twoway connected examples, section 14.7, use connecting<br />

lines; here the clpattern() and clwidth() options apply:<br />

twoway (line m1840-k1999 age , clpattern( - l - l – l ))

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!