01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

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.

44 2 Presenting <strong>and</strong> Summarising the Data<br />

hist(y,x), plots a bar graph of the y frequencies, using a vector x with the<br />

categories. For the PClass variable one would have to write down the following<br />

comm<strong>and</strong>s:<br />

» cat=[1 2 3]; %vector with categories<br />

» hist(pclass,cat)<br />

Figure 2.10. <strong>SPSS</strong> Define Simple Bar window, for specifying bar charts.<br />

Figure 2.11. The <strong>SPSS</strong> Chart Editor, with which the user can configure the<br />

graphic output (in the present case, Figure 2.9). For instance, by using Color<br />

from the Format menu one can modify the bar colour.

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

Saved successfully!

Ooh no, something went wrong!