Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
ggplot2 Essentials

You're reading from   ggplot2 Essentials Explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785283529
Length 234 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Donato Teutonico Donato Teutonico
Author Profile Icon Donato Teutonico
Donato Teutonico
Arrow right icon
View More author details
Toc

Index

A

  • aesthetic attributes
    • about / ggplot2 and the grammar of graphics, Introduction to aesthetic attributes
  • aesthetic mapping
    • about / Advanced aesthetic mapping
    • in ggplot2 / Typical aesthetic mappings available in ggplot2
    • to new stat variables / Mapping the aesthetic to new stat variables
  • axis
    • transformation / Axis transformations
    • modifying, themes used / Themes for the axis and title
  • axis labels
    • about / The plot title and axis labels
    • modifying / The plot title and axis labels
  • axis scales
    • about / Axis scales
    • modifying / Axis scales
    • discrete axis / The discrete axis
    • continuous axis / The continuous axis
    • axis, transformation / Axis transformations
  • axis tick marks
    • removing / Axis transformations

B

  • bar charts
    • about / Bar charts, Bar charts
    • URL / Further reading
  • borders() function
    • URL / Further reading
  • box plots
    • about / Boxplots, Boxplots
    • URL / Further reading
  • bubble charts
    • about / Bubble charts and dot plots
    • URL / Further reading
  • bullseye chart / A bullseye chart

C

  • categorical variables
    • and mapping continuous, differences / Difference in mapping continuous and categorical variables
  • Comprehensive R Archive Network (CRAN)
    • about / Getting ggplot2 up and running
  • continuous axis
    • modifying / The continuous axis
  • coordinates
    • about / ggplot2 and the grammar of graphics
  • coordinate system
    • about / The coordinate system
    • functions / The coordinate system
    • coord_cartesian(xlim, ylim function / The coordinate system
    • coord_fixed(ratio , xlim , ylim) function / The coordinate system
    • coord_flip(…) function / The coordinate system
    • coord_polar(theta , start , direction) function / The coordinate system
  • coord_fixed() function / The coordinate system
  • coord_map() function
    • URL / Further reading
  • coxcomb diagram / A coxcomb diagram

D

  • density plots
    • about / Histograms and density plots
    • URL / Further reading
    / Histograms and density plots
  • discrete axis
    • modifying / The discrete axis
    • order of discrete variables, reversing / The discrete axis
  • dot plots
    • about / Bubble charts and dot plots

E

  • Eclipse
    • URL / Eclipse and StatET
    • about / Eclipse and StatET
  • Emacs
    • URL / Emacs and ESS
    • about / Emacs and ESS
  • Emacs Speaks Statistics (ESS)
    • about / Emacs and ESS
    • URL / Emacs and ESS

F

  • faceting
    • about / ggplot2 and the grammar of graphics, Introduction to faceting, Faceting
    • panel orientation, modifying / Introduction to faceting
    • grid faceting / Grid faceting
    • wrap faceting / Wrap faceting
  • facets
    • used, for adding text / Add text and reference lines with facets
    • used, for adding reference lines / Add text and reference lines with facets
    • using, with themes / Themes with facets
  • facet_grid() function / Grid faceting
  • facet_wrap() function / Wrap faceting

G

  • geom attributes / Boxplots
  • geometric objects
    • about / ggplot2 and the grammar of graphics
  • geom functions
    • names, searching / Geometric
  • geom functions, geometry attributes
    • geom_abline / Geometric
    • geom_area / Geometric
    • geom_bar / Geometric
    • geom_blank / Geometric
    • geom_boxplot / Geometric
    • geom_density / Geometric
    • geom_dotplot / Geometric
    • geom_errorbar / Geometric
    • geom_errorbarh / Geometric
    • geom_histogram / Geometric
    • geom_hline / Geometric
    • geom_jitter / Geometric
    • geom_line / Geometric
    • geom_path / Geometric
    • geom_point / Geometric
    • geom_pointrange / Geometric
    • geom_ribbon / Geometric
    • geom_smooth / Geometric
    • geom_text / Geometric
    • geom_tile / Geometric
    • geom_vline / Geometric
  • geom_tile() function
    • URL / Further reading
  • GGally
    • scatterplot matrix with / Scatterplot matrix with GGally
  • ggmap
    • used, for plotting maps / Plotting maps with ggplot2 and ggmap
    • used, for representing maps / Representing maps with ggmap
  • ggpairs() function
    • URL / Further reading
  • ggplot() function
    • and qplot() function, equivalent coding / Equivalent coding between qplot and ggplot
  • ggplot2
    • about / Getting ggplot2 up and running
    • running / Getting ggplot2 up and running
    • packages / Packages in R
    • grammar, of graphics / ggplot2 and the grammar of graphics
    • layers / Layers in ggplot2
    • aesthetic mappings / Typical aesthetic mappings available in ggplot2
    • URL / Adding text and reference lines to plots, Further reading, Exploring scales
    • references / Further reading
    • used, for plotting maps / Plotting maps with ggplot2 and ggmap
    • used, for representing mapping / Mapping representations with ggplot2 and maps
    • used, for plotting heatmaps / Plotting heatmaps with ggplot2
  • grammar, of graphics
    • about / ggplot2 and the grammar of graphics
  • Graphical User Interface (GUI)
    • about / The Integrated Development Environment
  • graphics package
    • about / Graphics and standard plots
    • implementing / Graphics and standard plots
    • scatter plot, generating with points of all data / Scatterplots with individual data points
    • scatter plot, generating with line of one tree / Scatterplots with the line of one tree
    • scatter plot, generating with line and points of one tree / Scatterplots with the line and points of one tree
    • boxplot, generating / Boxplots of the orange dataset
    • boxplot, generating with observations / Boxplots with individual observations
    • histogram, generating / Histograms of the orange dataset
    • histogram, generating with vertical bar on median value / Histograms with the reference line at the median value in red
  • graphics tools
    • reference link / The plotting environments in R
  • grayscale plots
    • creating / Exploring scales
  • grid-based graphics
    • about / Standard graphics and grid-based graphics
  • grid faceting / Grid faceting

H

  • heatmaps
    • plotting, with ggplot2 / Plotting heatmaps with ggplot2
  • histograms
    • about / Histograms and density plots, Histograms and density plots
    • URL / Further reading

I

  • I() function / Introduction to aesthetic attributes
  • Integrated Development Environment (IDE)
    • about / The Integrated Development Environment
    • RStudio / RStudio
    • Eclipse / Eclipse and StatET
    • StatET / Eclipse and StatET
    • Emacs / Emacs and ESS
    • Emacs Speaks Statistics (ESS) / Emacs and ESS
  • Inter-Quartile Range (IQR) / Boxplots

L

  • lattice package
    • about / Lattice and Trellis plots
    • example / Lattice and Trellis plots
    • scatter plot, generating with points / Scatterplots with individual observations
    • scatter plot, generating with faceting / Scatterplots of the orange dataset with faceting
    • scatter plot, faceting with line and points / Faceting scatterplots with line and points
    • scatter plot, generating with grouping data / Scatterplots with grouping data
    • boxplot, generating / Boxplots of the orange dataset
    • histogram, generating with default options / Histograms of the orange dataset
    • histogram, generating with vertical bar on median value / Histograms with the reference line at the median value in red
  • layered grammar
    • components / Components of layered grammar
  • layers, ggplot2
    • about / Layers in ggplot2
    • data / Data
    • aesthetic mapping / Aesthetic mapping
    • geometry attributes / Geometric
    • stat / Stat
    • position adjustment / Position adjustment
  • legends
    • about / Legends
    • modifying / Legends
    • title, modifying / The legend title
    • keys, modifying / Legend keys and key labels
    • key labels, modifying / Legend keys and key labels
    • modifying, themes used / Themes for the legend
  • linear regression
    • about / Linear regression
    • statistics, with faceting / Statistics with faceting

M

  • mapping continuous
    • and categorical variables, differences / Difference in mapping continuous and categorical variables
  • mapproject() function / Further reading
  • maps
    • plotting, with ggplot2 / Plotting maps with ggplot2 and ggmap
    • plotting, with ggmap / Plotting maps with ggplot2 and ggmap
    • representing, with ggplot2 / Mapping representations with ggplot2 and maps
    • representing, with ggmap / Representing maps with ggmap
  • map_data() function
    • URL / Further reading
  • multiple plots, in one page
    • arranging / Multiple plots in one page
    • plots, arranging in rows and columns / Arranging plots in rows and columns
    • plot position, specifying / Specifying the plot position

N

  • Normalized Parent Coordinates (NPC) / Specifying the plot position

P

  • packages
    • about / Packages in R
  • pie chart / A pie chart
  • plot background
    • modifying, themes used / Themes for the plot background
  • plot layer by layer
    • creating, with qplot() function / Creating a plot layer by layer with the ggplot function
  • plot output
    • multiple plots, in one page / Multiple plots in one page
    • plots, saving to file / Saving plots to a file
    • references / Further reading
  • plots
    • reference lines, adding / Adding text and reference lines to plots
    • text, adding / Adding text and reference lines to plots
    • with polar coordinates / Plots with polar coordinates
    • pie chart / A pie chart
    • bullseye chart / A bullseye chart
    • coxcomb diagram / A coxcomb diagram
  • plots, saving to file
    • about / Saving plots to a file
    • saving manually / Saving the plot manually
    • without rendering plot / Saving the plot to a file without rendering it
    • single plot, saving / Saving a single plot
    • multiple plots, saving on same PDF file / Saving multiple plots on the same PDF file
    • after rendering plot / Saving the plot after rendering it
  • plotting environments
    • about / The plotting environments in R
  • plot title
    • about / The plot title and axis labels
    • modifying / The plot title and axis labels
    • splitting / The plot title and axis labels
  • polar coordinates
    • plots, with / Plots with polar coordinates
  • position adjustment
    • about / Position adjustment
    • of categorical data / Position adjustment of categorical data
    • of continuous data / Position adjustment of continuous data
  • position adjustment, of categorical data
    • about / Position adjustment of categorical data
    • dodge / Position adjustment of categorical data
    • fill / Position adjustment of categorical data
    • stack / Position adjustment of categorical data
  • position_stack() function / Position adjustment of categorical data
  • pushViewport() function / Arranging plots in rows and columns

Q

  • qplot() basic function
    • about / General aspects
    • components / General aspects
  • qplot() function
    • URL / General aspects
    • used, for creating plot layer by layer / Creating a plot layer by layer with the ggplot function
    • and ggplot() function, equivalent coding / Equivalent coding between qplot and ggplot
  • qplot function
    • URL / Further reading

R

  • reference lines
    • adding, to plots / Adding text and reference lines to plots
    • adding, facets used / Add text and reference lines with facets
  • R project
    • URL / Getting ggplot2 up and running
  • RStudio
    • about / RStudio
    • URL / RStudio
    • scripting area / RStudio
    • console area / RStudio
    • workspace/history area / RStudio
    • visualization area / RStudio
  • RStudio Server
    • about / RStudio

S

  • scales
    • about / ggplot2 and the grammar of graphics, Scales, Exploring scales
    • exploring / Exploring scales
  • scale_color_hue() function / Aesthetic mapping
  • scale_x_discrete() function, arguments
    • name / The discrete axis
    • breaks / The discrete axis
    • labels / The discrete axis
    • na.value / The discrete axis
    • limits / The discrete axis
    • guide / The discrete axis
  • scatterplot matrix
    • with GGally / Scatterplot matrix with GGally
  • scatterplots
    • about / Scatterplots, Scatterplots
    • URL / Further reading
  • smooth lines
    • about / Smooth lines
  • standard graphics
    • about / Standard graphics and grid-based graphics
  • standard plots
    • about / Graphics and standard plots
  • StatET
    • about / Eclipse and StatET
    • URL / Eclipse and StatET
  • stat functions
    • stat_bin / Stat
    • stat_bindot / Stat
    • stat_boxplot / Stat
    • stat_density / Stat
    • stat_function / Stat
    • stat_identity / Stat
    • stat_quantile / Stat
    • stat_smooth / Stat
    • stat_sum / Stat
    • stat_summary / Stat
    • stat_unique / Stat
  • statistical transformations
    • about / ggplot2 and the grammar of graphics
  • statistics
    • adding / Adding statistics
  • stat variables
    • aesthetic mapping to / Mapping the aesthetic to new stat variables
  • subset() function / Grid faceting

T

  • text
    • adding, to plots / Adding text and reference lines to plots
    • adding, facets used / Add text and reference lines with facets
  • themes
    • about / Themes
    • URL / Themes
    • using / Themes
    • used, for modifying legends / Themes for the legend
    • used, for modifying title / Themes for the axis and title
    • used, for modifying axis / Themes for the axis and title
    • used, for modifying plot background / Themes for the plot background
    • facets, using / Themes with facets
  • time series
    • about / Time series
  • title
    • modifying, themes used / Themes for the axis and title
  • Trellis plots
    • about / Lattice and Trellis plots

W

  • wrap faceting / Wrap faceting
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images