02.07.2013 Views

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

现代统计图形 - 科学网—博客

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.24 带状图 119<br />

1 > layout(matrix(1:2, 2), height = c(1.5, 1))<br />

2 > boxplot(count ~ spray, data = InsectSprays, horizontal = TRUE,<br />

3 + border = "red", col = "lightgreen", at = 1:6 -<br />

4 + 0.3)<br />

5 > stripchart(count ~ spray, data = InsectSprays, method = "stack",<br />

6 + add = TRUE)<br />

7 > stripchart(count ~ spray, data = InsectSprays, method = "jitter")<br />

A B C D E F<br />

A B C D E F<br />

0 5 10 15 20 25<br />

0 5 10 15 20 25<br />

count<br />

图 5.31: 各种杀虫剂下昆虫数目的带状图:堆砌和随机打乱的带状图。

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

Saved successfully!

Ooh no, something went wrong!