ggplot2 Essentials
eBook - ePub

ggplot2 Essentials

Donato Teutonico

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

ggplot2 Essentials

Donato Teutonico

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

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 ggplot2 Essentials als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu ggplot2 Essentials von Donato Teutonico im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatique & Visualisation de données. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2015
ISBN
9781785283529

ggplot2 Essentials


Table of Contents

ggplot2 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. Graphics in R
Getting ggplot2 up and running
Packages in R
The Integrated Development Environment
RStudio
Eclipse and StatET
Emacs and ESS
The plotting environments in R
Standard graphics and grid-based graphics
Graphics and standard plots
Scatterplots with individual data points
Scatterplots with the line of one tree
Scatterplots with the line and points of one tree
Boxplots of the orange dataset
Boxplots with individual observations
Histograms of the orange dataset
Histograms with the reference line at the median value in red
Lattice and Trellis plots
Scatterplots with individual observations
Scatterplots of the orange dataset with faceting
Faceting scatterplots with line and points
Scatterplots with grouping data
Boxplots of the orange dataset
Histograms of the orange dataset
Histograms with the reference line at the median value in red
ggplot2 and the grammar of graphics
Further reading
Summary
2. Getting Started
General aspects
Introduction to aesthetic attributes
Introduction to faceting
Histograms and density plots
Bar charts
Boxplots
Scatterplots
Time series
Bubble charts and dot plots
Further reading
Summary
3. The Layers and Grammar of Graphics
Components of layered grammar
Creating a plot layer by layer with the ggplot function
Scales
The coordinate system
Faceting
Grid faceting
Wrap faceting
Layers in ggplot2
Data
Aesthetic mapping
Geometric
Stat
Position adjustment
Position adjustment of categorical data
Position adjustment of continuous data
Equivalent coding between qplot and ggplot
Histograms and density plots
Bar charts
Boxplots
Scatterplots
Further reading
Summary
4. Advanced Plotting Techniques
Adding statistics
Smooth lines
Linear regression
Statistics with faceting
Advanced aesthetic mapping
Typical aesthetic mappings available in ggplot2
Mapping the aesthetic to new stat variables
Difference in mapping continuous and categorical variables
Adding text and reference lines to plots
Add text and reference lines with facets
Plots with polar coordinates
A pie chart
A bullseye chart
A coxcomb diagram
Further reading
Summary
5. Controlling Plot Details
Exploring scales
The plot title and axis labels
Axis scales
The discrete axis
The continuous axis
Axis transformations
Legends
The legend title
Legend keys and key labels
Themes
Themes for the legend
Themes for the axis and title
Themes for the plot background
Themes with facets
Further reading
Summary
6. Plot Output
Multiple plots in one page
Arranging plots in rows and columns
Specifying the plot position
Saving plots to a file
Saving the plot manually
Saving the plot to a file without rendering it
Saving a single plot
Saving multiple plots on the same PDF file
Saving the plot after rendering it
Further reading
Summary
7. Special Applications of ggplot2
Plotting maps with ggplot2 and ggmap
Mapping representations with ggplot2 and maps
Representing maps with ggmap
Scatterplot matrix with GGally
Plotting heatmaps with ggplot2
Further reading
Summary
Index

ggplot2 Essentials

Copyright © 2015 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: June 2015
Production reference: 1220615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-352-9
www.packtpub.com

Credits

Author
Donato Teutonico
Reviewers
Juanjo Abellan
Niels W. Hanson
Sefa Kilic
Commissioning Editor
Julian Ursell
Acquisition Editors
Tushar Gupta
Owen Roberts
Content Development Editor
Samantha Gonsalves
Technical Editor
Siddhesh Patil
Copy Editor
Sarang Chari
Project Coordinator
Kinjal Bari
Proofreader
Safis Editing
Indexer
Monica Mehta
Graphics
Disha Haria
Jason Monteiro
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta

About the Author

Donato Teutonico has received his PharmD degree from the University of Turin, Italy, where he specialized in chemical and pharmaceutical technology, and his PhD in pharmaceutical sciences from Paris-South University, France. He has several years of experience in the modeling and simulation of drug effects and clinical trials in industrial and academic settings. Donato has contributed to numerous scientific projects and publications in internation...

Inhaltsverzeichnis