R Graphs Cookbook

所需积分/C币:16 2017-04-15 20:39:08 4.02MB PDF

描述R语言中,怎么样画各种各样的图,包括散点图,饼图,柱形图等,是R Graphs Cookbook 英文原版pdf
R Graphs Cookbook Copyright o 2011 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information First published: January 2011 Production Reference: 1110111 Published by packt publishing Ltd 32 Lincoln road Olton Birmingham, B27 6PA, UK SBN978-1-849513-06-7 www.packtpub.com CoverImagebyCharwak(charwak86@gmail.com) Credits Author Editorial Team Leader Hrishi v. mittal Akshara Aware Reviewers Project Team Leader Patrick burns Priya Mukherji Paul butle Markus lech Project Coordinator Jovita pinto Paolo Soneg Proofreader Acquisition Editor Joanna mcmahon Eleanor Duffy Indexer Development Editor Maitreya bhaal Tejal Daruwale Production coordinator Technical Editor Melwyn D'sa Vanjeet D'souza Aparna Bhagat Copy Editor Neha shetty Cover work Melwyn D'sa About the Author Hrishi v Mittal has been working with R for a few years in different capacities. he was introduced to the exciting world of data analysis with r when he was working as a senior Air Quality scientist at Kings college London, where he used r extensively to analyze large amounts of air pollution and traffic data to inform the Mayor of london's Air Quality Strategy. he has experience in various other programming languages, but prefers r for data analysis and visualization He is actively involved in various r mailing lists, forums and the development of some R packages Inearly2010,HrishistartedpRettyGraphLimited(www.prettygraph.com),asoftware company specializing in web-based data visualization products. The company's flagship product, Pretty graph, uses R as the backend engine for helping researchers and businesses visualize and analyze data. the goal is to bring the power of r to a wider audience by providing a modern graphical user interface which can be accessed by anyone and from anywhere simply by using a web browser First and foremost, I am grateful to the creators of R, Ross Ihaka and robert Gentleman and the countless other contributors who have made one of the greatest open source software of all time. I would like to thank my wife Louise for her patience and support throughout the writing of the book. Her feedback on the writing itself has also been very useful. Special thanks are also due to Clive and Jimmy, who have consistently provided silent, warm and furry stress relief Im grateful to my parents and sister for their love and the pride they always take in my work, even when they are not quite sure what I'm doing It's been nice to have support from my friends madhavi Bhargava, Rohit Menon and Aniruddha Kembavi, who have been very encouraging and at times more excited than me about the book Id also like to thank the reviewers for pointing out some errors and suggesting valuable improvements. Last, but not least, I'd like to thank my editor Eleanor duffy and the rest of the team at Packt, who have been very professional, understanding and helpful throughout the project About the reviewers Patrick Burns is well known in the r community in particular for the free r documents thatareavailableontheBurnsstatisticswebsite(http://www.burns-stat.com/.he produces software for the fund management industry that runs in r and st Paul butler studies math and computer science at the university of Waterloo in Canada Between academic terms, he has worked on data analysis and data infrastructure projects at a handful of startups and a large dot-com company. paul enjoys sailing and bouldering and blogssporadicallyathttp://paulbutler.org/ Markus Loecher is an expert in predictive modeling and statistical analysis of primarily spatiotemporal data. He holds multiple patents in machine learning and has over nine years of experience analyzing large, complex data sets to build advanced descriptive and predictive models Markus holds a Bsc from the University of cologne, a Phd in Physics from Ohio University and a masters in Statistics from Rutgers University he completed postdoctoral research in physics at ohio state University and at georgia Tech investigating spatiotemporal chaos. His work has been published in several prestigious journals, he has authored on the topic of noise sustained patterns, and co-authored a book on chaos control. Markus holds r in the highest regard and has been using it actively for about eight years He is the author of several popular r packages, such as GooglemAps, HTMLUtils and gbmParallel. He is the author of Noise Sustained patterns published by World Scientific Paolo sonego has spent the last three years as a bioinformatician analyzing -omics'data for a company in Trieste, Italy. he is a strong supporter and enthusiast of the r programming language for statistical computing and graphics he has a blog devoted to his favorite programming language(onertipaday. blogspot. com). Paolo lives with his love Flavia and his cat Tristan in Pordenone, Italy I want to thank ross haka and robert gentleman for creating r and the wonderful community of both developers and contributors www.Packtpub.com Support files, eBooks, discount offers, and more Youmightwanttovisitwww.paCktpub.comforsupportfilesanddownloadsrelatedto your book Did you know that Packt offers eBook versions of every book published, with PDF and ePub filesavailableYoucanupgradetotheebookversionatwww.Packtpub.comandasaprint book customer, you are entitled to a discount on the e Book copy. Get in touch with us at service@packtpub com for more details Atwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignup for a range of free newsletters and receive exclusive discounts and offers on Packt books and ebooks PACKTLIB http://packtlib.Packtpub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books Why Subscribe? Fully searchable across every book published by Packt Copy& paste, print and bookmark content On demand and accessible via web browser Free Access for packt account holders IfyouhaveanaccountwithPacktatwww.Packtpub.com,youcanusethistoaccess PacktLib today and view nine entirely free books Simply use your login credentials for immediate access Table of contents Preface Chapter 1: Basic Graph Functions Introduction Creating scatter plots Creating line graphs 12 Creating bar charts 14 Creating histograms and density plots Creating box plots 20 Adjusting X and Y axes limits 22 Creating heat maps 24 Creating pairs plots 27 Creating multiple plot matrix layouts 30 Adding and formatting legends 33 Creating graphs with maps 37 Saving and exporting graphs 40 Chapter 2: beyond the Basics: Adjusting key parameters 43 Introduction 43 Setting colors of points lines, and bars 44 Setting plot background colors 48 Setting colors for text elements: axis annotations labels, plot titles and legends 50 Choosing color combinations and palettes 52 Setting fonts for annotations and titles 54 Choosing plotting point symbol styles and sizes 56 Choosing line styles and width 58 Choosing box styles 60 Adjusting axis annotations and tick marks 63 Formatting log axes 65 Setting graph margins and dimensions 66

...展开详情
img
wmissing

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源