R Graph Essentials
eBook - ePub

R Graph Essentials

David Alexander Lillis

Compartir libro
  1. 190 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

R Graph Essentials

David Alexander Lillis

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es R Graph Essentials un PDF/ePUB en línea?
Sí, puedes acceder a R Graph Essentials de David Alexander Lillis en formato PDF o ePUB, así como a otros libros populares de Computer Science y Open Source Programming. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2014
ISBN
9781783554553
Edición
1

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

Índice