没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Winston Chang
R Graphics Cookbook
ISBN: 978-1-449-31695-2
[CK]
R Graphics Cookbook
by Winston Chang
Copyright © 2013 Winston Chang. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: M
ike Loukides and Courtney Nash
Production Editor: Holly Bauer
Copyeditor: Rachel Head
Proofreader: J
illy Gagnon
Indexer: Lucie Haskins
Cover Designer: Randall Comer
Interior Designer: David Futato
Illustrator: Rebecca Demarest and Robert Romano
December 2012: First Edition
Re
vision History for the First Edition:
2012-12-04 First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449316952 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc. R Graphics Cookbook, the image of a reindeer, and related trade dress are trademarks of O’Reilly
Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trade‐
mark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information contained
herein.
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. R Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1. Installing a Package 1
1.2. Loading a Package 2
1.3. Loading a Delimited Text Data File 3
1.4. Loading Data from an Excel File 4
1.5. Loading Data from an SPSS File 5
2. Quickly Exploring Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1. Cr
eating a Scatter Plot 7
2.2. Creating a Line Graph 9
2.3. Creating a Bar Graph 11
2.4. Creating a Histogram 13
2.5. Creating a Box Plot 15
2.6. Plotting a Function Curve 17
3. Bar Graphs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1. Making a Basic Bar Graph 19
3.2. Grouping Bars Together 22
3.3. Making a Bar Graph of Counts 25
3.4. Using Colors in a Bar Graph 27
3.5. Coloring Negative and Positive Bars Differently 29
3.6. Adjusting Bar Width and Spacing 30
3.7. Making a Stacked Bar Graph 32
3.8. Making a Proportional Stacked Bar Graph 35
3.9. Adding Labels to a Bar Graph 38
3.10. Making a Cleveland Dot Plot 42
4. Line Graphs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
iii
剩余412页未读,继续阅读
资源评论
m0_37422869
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功