Ggplot2 Essentials

Preparing link to download Please wait... Download

E-Book Overview

Explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs

About This Book

  • Discover the capabilities of one of the most sophisticated plotting packages in R
  • Create high-quality plots with this powerful and flexible tool
  • Accelerate your understanding of ggplot2 with useful and practical examples

Who This Book Is For

This book is perfect for R programmers who are interested in learning to use ggplot2 for data visualization, from the basics up to using more advanced applications, such as faceting and grouping. Since this book will not cover the basics of R commands and objects, you should have a basic understanding of the R language.

What You Will Learn

  • Familiarize yourself with some important data visualization packages in R such as graphics, lattice, and ggplot2
  • Realize different kinds of simple plots with the basic qplot function
  • Understand the basics of the grammar of graphics, the data visualization approach implemented in ggplot2
  • Master the ggplot2 package in realizing complex and more advanced graphs
  • Personalize the graphical details and learn the aesthetics of plotting graphs
  • Save and export your plots in different formats
  • Include maps in ggplot graphs, overlay data on maps, and learn how to realize complex matrix scatterplots

In Detail

ggplot2 is one of the most sophisticated and advanced packages of R and its use is constantly growing in the community of R programmers. This book is the perfect starting point for your journey in learning about one of the most refined and widely used plotting tools―ggplot2.

You will start by taking a tour of the most relevant packages available in R to create plots, such as graphics, lattice, and ggplot2. Following this, you will take a deep dive into the concepts of ggplot2 by covering different kinds of plots that will help you gear up for your first hands-on project. After this first taste of the capabilities of ggplot2, you will explore in detail the visualization approach implemented in this package, the so-called grammar of graphics, providing you with the basics to understand the backstage concepts in the plotting functions. Finally, you will take a look at some specialized and sophisticated applications of ggplot2, such as how to realize a complex scatterplot matrix, heatmaps, and how to make spatial visualization graphs.


E-Book Content

[1] ggplot2 Essentials Explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs Donato Teutonico BIRMINGHAM - MUMBAI 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 w