Cargando…

Ggplot2 essentials : explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs /

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

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Teutonico, Donato (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 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 datasetHistograms 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; Chapter 2: Getting Started; General aspects; Introduction to aesthetic attributes; Introduction to faceting
  • Histograms and density plotsBar charts; Boxplots; Scatterplots; Time series; Bubble charts and dot plots; Further reading; Summary; Chapter 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
  • ScatterplotsFurther reading; Summary; Chapter 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; Chapter 5: Controlling Plot Details; Exploring scales
  • The plot title and axis labelsAxis 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; Chapter 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