06.09.2021 Views

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

Learning Statistics with R - A tutorial for psychology students and other beginners, 2018a

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.

0 10 20 30<br />

0 10 20 30<br />

Adelaide Fitzroy Melbourne Sydney<br />

(a)<br />

(b)<br />

Finals Played, 1987−2010<br />

30<br />

20<br />

Number of Finals<br />

30<br />

20<br />

10<br />

10<br />

0<br />

Adelaide<br />

Brisbane<br />

Carlton<br />

ingwood<br />

ssendon<br />

Fitzroy<br />

remantle<br />

Geelong<br />

Hawthorn<br />

elbourne<br />

elbourne<br />

Adelaide<br />

ichmond<br />

St Kilda<br />

Sydney<br />

st Coast<br />

Bulldogs<br />

(c)<br />

0<br />

Adelaide<br />

Brisbane<br />

Carlton<br />

Collingwood<br />

Essendon<br />

Fitzroy<br />

Fremantle<br />

Geelong<br />

Hawthorn<br />

Melbourne<br />

North Melbourne<br />

Port Adelaide<br />

Richmond<br />

St Kilda<br />

Sydney<br />

West Coast<br />

Western Bulldogs<br />

(d)<br />

Figure 6.19: Four bargraphs. Panel a shows the simplest version of a bargraph, containing the data but<br />

no labels. In panel b we’ve added the labels, but because the text runs horizontally R only includes a few<br />

of them. In panel c we’ve rotated the labels, but now the text is too long to fit. Finally, in panel d we<br />

fix this by exp<strong>and</strong>ing the margin at the bottom, <strong>and</strong> add several <strong>other</strong> customisations to make the chart<br />

a bit nicer.<br />

.......................................................................................................<br />

- 189 -

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

Saved successfully!

Ooh no, something went wrong!