R Graph Essentials
eBook - ePub

R Graph Essentials

David Alexander Lillis

Partager le livre
  1. 190 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

R Graph Essentials

David Alexander Lillis

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

R has undergone an explosion of popularity around the world. The wide range of graphs and options for creating high-impact visualizations makes R a highly effective tool for researchers, data analysts, students, and others.

This book starts with the basics of R and the principles of creating graphics, focusing on scatterplots and line graphs for research and data analysis.

After that you will learn how to include mathematical expressions on your graphs and create bar charts, histograms, boxplots, and so on using advanced functions. The book then dives deeper into shading and coloring your graphs and labeling points on graphs using the qplot function. After that you will learn how to use the ggplot package to control symbol color, size, shape, and many other attributes.

By the end of this book, you will have expert skills to create attractive and informative graphics and design professional-level graphs.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que R Graph Essentials est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  R Graph Essentials par David Alexander Lillis en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et ProgramaciĂłn de cĂłdigo abierto. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2014
ISBN
9781783554553

R Graph Essentials


Table of Contents

R Graph Essentials
Credits
About the Author
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Base Graphics in R – One Step at a Time
Learning basic graphics techniques
Creating and joining points
Creating scatterplots and line plots
Colors in R
Passing parameter values to titles and labels
Including a regression line
Graphing mathematical functions
R provides many options
Creating graphs with several curves
Customizing your axes
Creating axis labels
Creating multiple graphs on the same page
Saving your graphs
Including mathematical expressions on your plots
Summary
2. Advanced Functions in Base Graphics
Reading datasets into R
Including a regression line and residuals
A medical dataset to create graphs
Creating complex multiple axes
Superposing graphs
Creating point labels
Including a grid on your graph
Shading and coloring your graph
Using polygon() to shade under a normal curve
Creating bar charts
Including a legend
Creating histograms
Creating boxplots
Creating pie charts
Creating dotcharts
R's color palettes
Using smoothers on your graph
Creating scatterplot matrices
Writing functions to create graphs
Including error bars on your graph
Summary
3. Mastering the qplot Function
About qplot
The qplot syntax
Producing scatterplots using qplot
Subsetting your data before graphing
Mapping aesthetics to categorical variables
Controlling colors on your graph
Setting up graphs as objects
Creating facet plots
Creating line graphs using qplot
Creating multiple curves simultaneously
Including smoothed curves
Creating histograms with qplot
Creating facet plots for histograms
Creating kernel density plots
Creating bar charts
Creating boxplots
Creating graphs with dates
Summary
4. Creating Graphs with ggplot
Getting started with ggplot
Mapping color, shape, and size to a variable
Modifying the plotting background
Controlling the legend name and legend labels
Modifying the x and y axes
Creating attractive color schemes
Creating curves for each factor level
Creating histograms
Creating bar charts
Creating a stacked bar chart
Creating a grouped bar chart
Creating a faceted bar chart
Creating boxplots
Labeling points with text
Mapping color to text
Including regression lines
Summary
Index

R Graph Essentials

Copyright © 2014 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: September 2014
Production reference: 1150914
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-455-3
www.packtpub.com
Cover image by Arvind Shetty ()

Credits

Author
David Alexander Lillis
Reviewers
Mzabalazo Z. Ngwenya
Donato Teutonico
Tengfei Yin
Commissioning Editor
Pramila Balan
Acquisition Editor
Reshma Raman
Content Development Editor
Akashdeep Kundu
Technical Editor
Rohit Kumar Singh
Copy Editors
Roshni Banerjee
Adithi Shetty
Project Coordinator
Kartik Vedam
Proofreaders
Simran Bhogal
Maria Gould
Ameesha Green
Indexer
Hemangini ...

Table des matiĂšres