ebook img

R Graphs Cookbook PDF

932 Pages·2015·12.339 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview R Graphs Cookbook

R Graphs Cookbook Second Edition Table of Contents R Graphs Cookbook Second Edition Credits About the Authors About the Reviewers www.PacktPub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for Packt account holders Preface What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. R Graphics Base graphics using the default package Trellis graphs using lattice Graphs inspired by Grammar of Graphics 2. Basic Graph Functions Introduction Creating basic scatter plots Getting ready How to do it… How it works… There’s more… A note on R’s built-in datasets See also Creating line graphs Getting ready How to do it… How it works… There’s more… See also Creating bar charts Getting ready How to do it… How it works… There’s more… See also Creating histograms and density plots How to do it… How it works… There’s more… See also Creating box plots Getting ready How to do it… How it works… There’s more… See also Adjusting x and y axes’ limits How to do it… How it works… There’s more… See also Creating heat maps How to do it… How it works… There’s more… See also Creating pairs plots How to do it… How it works… There’s more… See also Creating multiple plot matrix layouts How to do it… How it works… There’s more… See also Adding and formatting legends Getting ready How to do it… How it works… There’s more… See also Creating graphs with maps Getting ready How to do it… How it works… There’s more… See also Saving and exporting graphs How to do it… How it works… There’s more… See also 3. Beyond the Basics – Adjusting Key Parameters Introduction Setting colors of points, lines, and bars Getting ready How to do it… How it works… There’s more… See also Setting plot background colors Getting ready How to do it… How it works… There’s more… Setting colors for text elements – axis annotations, labels, plot titles, and legends Getting ready How to do it… How it works… There’s more… Choosing color combinations and palettes Getting ready How to do it… How it works… There’s more… See also Setting fonts for annotations and titles Getting ready How to do it… How it works… There’s more… See also Choosing plotting point symbol styles and sizes Getting ready How to do it… How it works… There’s more… See also Choosing line styles and width Getting ready How to do it… How it works… See also Choosing box styles Getting ready How to do it… How it works… There’s more… Adjusting axis annotations and tick marks Getting ready How to do it… How it works… There’s more… See also Formatting log axes Getting ready How to do it… How it works… There’s more… Setting graph margins and dimensions Getting ready How to do it… How it works… See also 4. Creating Scatter Plots Introduction Grouping data points within a scatter plot Getting ready How to do it… How it works… There’s more… See also Highlighting grouped data points by size and symbol type Getting ready How to do it… How it works… Labeling data points Getting ready How to do it… How it works… There’s more… Correlation matrix using pairs plots Getting ready How to do it… How it works… Adding error bars Getting ready How to do it… How it works… There’s more… Using jitter to distinguish closely packed data points Getting ready How to do it… How it works… Adding linear model lines Getting ready How to do it… How it works… Adding nonlinear model curves Getting ready How to do it… How it works… Adding nonparametric model curves with lowess Getting ready How to do it… How it works… Creating three-dimensional scatter plots Getting ready How to do it… How it works… There’s more… Creating Quantile-Quantile plots Getting ready How to do it… How it works… There’s more… Displaying the data density on axes Getting ready How to do it… How it works… There’s more… Creating scatter plots with a smoothed density representation Getting ready How to do it… How it works…

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.