Index
A
- abline() command / Learning basic graphics techniques, Including a regression line and residuals
- aes() function / Getting started with ggplot
- aesthetics
- mapping, to categorical variables / Mapping aesthetics to categorical variables
- arguments, qplot syntax
- data / The qplot syntax
- color / The qplot syntax
- shape / The qplot syntax
- geom / The qplot syntax
- main / The qplot syntax
- as.Date() function / Creating graphs with dates
- as.matrix() command / Creating dotcharts
- assigns operator
- at argument / Creating axis labels
- attach() command / Including a regression line and residuals, A medical dataset to create graphs
- axes
- customizing / Customizing your axes
- axis() command / Creating axis labels
- axis labels
- creating / Creating axis labels
B
- bar charts
- creating / Creating bar charts, Creating bar charts
- legend, including / Including a legend
- histograms, creating / Creating histograms
- boxplots, creating / Creating boxplots
- pie charts, creating / Creating pie charts
- dotcharts, creating / Creating dotcharts
- bar charts, graphs with ggplot
- creating / Creating bar charts
- stacked bar chart, creating / Creating a stacked bar chart
- grouped bar chart, creating / Creating a grouped bar chart
- faceted bar chart, creating / Creating a faceted bar chart
- barplot() command
- about / Creating bar charts
- basic graphics techniques
- boxplot() command / Creating boxplots
- boxplots
- creating / Creating boxplots, Creating boxplots
- boxplots, graphs with ggplot
- creating / Creating boxplots
C
- categorical variables
- aesthetics, mapping to / Mapping aesthetics to categorical variables
- cbind() function / Creating dotcharts
- color, graphs with ggplot
- mapping to text / Mapping color to text
- color palettes
- about / R's color palettes
- colors
- controlling, on graph / Controlling colors on your graph
- colors, of R
- about / Colors in R
- color schemes, graphs with ggplot
- creating / Creating attractive color schemes
- complex multiple axes
- creating / Creating complex multiple axes
- graphs, superposing / Superposing graphs
- point labels, creating / Creating point labels
- curve() command / Graphing mathematical functions
- curves
- graphs, creating with / Creating graphs with several curves
- curves, graphs with ggplot
- creating / Creating curves for each factor level
D
- data
- sub-setting, before graphing / Subsetting your data before graphing
- dev.copy()command / Saving your graphs
- dev.off() command / Saving your graphs
- dnorm() command / Using polygon() to shade under a normal curve, Creating histograms
- dotchart() command / Creating dotcharts
- dotcharts
- creating / Creating dotcharts
- drawresid() / Including a regression line and residuals
E
- element_text() function / Getting started with ggplot
- error bars
- including, on graph / Including error bars on your graph
- expression() command / Including mathematical expressions on your plots
F
- facet plots
- creating / Creating facet plots
- creating, for histograms / Creating facet plots for histograms
- facet_grid() / Creating a faceted bar chart
- facet_wrap() / Creating a faceted bar chart
- factor / Mapping aesthetics to categorical variables
- factor() command / Mapping aesthetics to categorical variables
- font options, for graphs
- font.axis / Creating scatterplots and line plots
- font.tab / Creating scatterplots and line plots
- font.main / Creating scatterplots and line plots
- font.sub / Creating scatterplots and line plots
- function() command / Writing functions to create graphs
G
- geom_abline() / Including regression lines
- geom_histogram() / Creating histograms
- geom_point() function / Getting started with ggplot
- ggplot
- about / Getting started with ggplot
- ggplot2
- installing / About qplot
- graph
- medical dataset / A medical dataset to create graphs
- grid, adding / Including a grid on your graph
- shading / Shading and coloring your graph
- coloring / Shading and coloring your graph
- smoothers, using / Using smoothers on your graph
- colors, controlling / Controlling colors on your graph
- setting up, as object / Setting up graphs as objects
- graphing options
- postscript() / Saving your graphs
- jpeg() / Saving your graphs
- pdf() / Saving your graphs
- bitmap() / Saving your graphs
- graphs
- creating, with curves / Creating graphs with several curves
- saving / Saving your graphs
- superposing / Superposing graphs
- creating, with dates / Creating graphs with dates
- graphs, with ggplot
- creating / Getting started with ggplot
- color, mapping / Mapping color, shape, and size to a variable
- shape, mapping / Mapping color, shape, and size to a variable
- size, mapping / Mapping color, shape, and size to a variable
- plotting background, modifying / Modifying the plotting background
- legend name, controlling / Controlling the legend name and legend labels
- legend labels, controlling / Controlling the legend name and legend labels
- x and y axes, modifying / Modifying the x and y axes
- color schemes, creating / Creating attractive color schemes
- attractive color schemes, creating / Creating attractive color schemes
- curves, creating / Creating curves for each factor level
- histograms, creating / Creating histograms
- bar charts, creating / Creating bar charts
- boxplots, creating / Creating boxplots
- points, labeling with text / Labeling points with text
- color, mapping to text / Mapping color to text
- regression lines, including / Including regression lines
- grid
- adding, on graph / Including a grid on your graph
H
- Height against Age graph / Creating multiple curves simultaneously
- Hexadecimal Color Chart
- URL / Colors in R
- hist() command / Saving your graphs, Creating histograms
- histograms
- creating / Creating histograms
- creating, qplot used / Creating histograms with qplot
- facet plots, creating for / Creating facet plots for histograms
- histograms, graphs with ggplot
- creating / Creating histograms
K
- kernel density plots
- creating / Creating kernel density plots
L
- labs() function
- using / Getting started with ggplot
- las argument / Creating axis labels
- legend
- creating / Including a legend
- length() / Creating pie charts
- levels() command / Creating dotcharts
- line graphs
- creating, qplot used / Creating line graphs using qplot
- line plots
- creating / Creating scatterplots and line plots
- lines() command / Learning basic graphics techniques, Creating histograms
- lm() command / Including a regression line and residuals
- LOWESS (locally weighted scatterplot smoothing) / Using smoothers on your graph
M
- mathematical expressions
- including, on plots / Including mathematical expressions on your plots
- mathematical functions
- graphing / Graphing mathematical functions
- medical dataset
- for creating graphs / A medical dataset to create graphs
- melt() function / Creating graphs with dates
- mfrow = c(1,2) / Creating dotcharts
- mtext() command / Creating complex multiple axes
- multiple curves
- creating simultaneously / Creating multiple curves simultaneously
- multiple graphs
- creating, on same page / Creating multiple graphs on the same page
O
- objects
- graphs, setting up as / Setting up graphs as objects
- Ordinary Least Squares (OLS) regressions / Including a regression line
P
- pairs()
- about / Creating scatterplot matrices
- par() / Creating dotcharts
- parameter values
- passing, to titles / Passing parameter values to titles and labels
- passing, to labels / Passing parameter values to titles and labels
- paste() command / Passing parameter values to titles and labels, Including mathematical expressions on your plots
- pdf() command / Saving your graphs
- pie() command / Creating pie charts
- pie charts
- creating / Creating pie charts
- plot() command / Including a regression line and residuals
- point labels
- creating / Creating point labels
- points
- creating / Creating and joining points
- joining / Creating and joining points
- points, graphs with ggplot
- lablling with text / Labeling points with text
- labeling with text / Labeling points with text
- polygon()
- used, for shading normal curve / Using polygon() to shade under a normal curve
- polygon() command / Shading and coloring your graph, Creating kernel density plots
- predict() command / Including a regression line and residuals
Q
- qplot
- about / About qplot
- used, for producing scatterplots / Producing scatterplots using qplot
- used, for creating line graphs / Creating line graphs using qplot
- used, for creating histograms / Creating histograms with qplot
- qplot syntax
- about / The qplot syntax
- arguments / The qplot syntax
- Quick-R
R
- R
- basic graphics techniques / Learning basic graphics techniques
- colors / Colors in R
- options / R provides many options
- datasets, reading / Reading datasets into R
- bar charts, creating / Creating bar charts
- color palettes / R's color palettes
- range() command / Creating histograms
- read.csv() command / Including a legend
- regression line
- regression lines, graphs with ggplot
- including / Including regression lines
- reshape package / Creating graphs with dates
- residuals
- including / Including a regression line and residuals
- rnorm() command / Creating histograms
- round() command / Creating pie charts
- rug() command / Learning basic graphics techniques
S
- scale_color_brewer() function / Creating attractive color schemes
- scale_color_manual() / Creating curves for each factor level
- scale_size_area() layer / Mapping color, shape, and size to a variable
- scatterplot matrices
- creating / Creating scatterplot matrices
- about / Creating scatterplot matrices
- functions, writing / Writing functions to create graphs
- error bars, including on graph / Including error bars on your graph
- scatter plots
- creating / Creating scatterplots and line plots
- scatterplots
- producing, qplot used / Producing scatterplots using qplot
- sd() command / Creating histograms
- seq() command / R provides many options
- smoothed curves
- including / Including smoothed curves
- smoothers
- using, on graph / Using smoothers on your graph
- stat_smooth() / Including regression lines
- subset() command / Creating dotcharts, Subsetting your data before graphing, Labeling points with text
- substitute() command / Including mathematical expressions on your plots
T
- t() transpose function / Creating dotcharts
- table() command
- about / Creating bar charts
- text() command / Creating complex multiple axes
- text() function / Creating point labels
- theme() function / Getting started with ggplot
- title() command / Passing parameter values to titles and labels
- tolower() command / Creating axis labels
- toupper() command / Creating axis labels
Z
- Z Value axis / Using polygon() to shade under a normal curve