R Graph Essentials
eBook - ePub

R Graph Essentials

David Alexander Lillis

Buch teilen
  1. 190 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

R Graph Essentials

David Alexander Lillis

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist R Graph Essentials als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu R Graph Essentials von David Alexander Lillis im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Open Source Programming. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
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 ...

Inhaltsverzeichnis