| |
| |
List of Figures | |
| |
| |
List of Tables | |
| |
| |
Preface | |
| |
| |
| |
An Introduction to R Graphics | |
| |
| |
| |
R graphics examples | |
| |
| |
| |
Standard plots | |
| |
| |
| |
Trellis plots | |
| |
| |
| |
The Grammar of Graphics | |
| |
| |
| |
Specialized plots | |
| |
| |
| |
General graphical scenes | |
| |
| |
| |
The organization of R graphics | |
| |
| |
| |
Types of graphics functions | |
| |
| |
| |
Traditional graphics versus grid graphics | |
| |
| |
| |
Traditional Graphics | |
| |
| |
| |
Simple Usage of Traditional Graphics | |
| |
| |
| |
The traditional graphics model | |
| |
| |
| |
The plot() function | |
| |
| |
| |
Plots of a single variable | |
| |
| |
| |
Plots of two variables | |
| |
| |
| |
Plots of many variables | |
| |
| |
| |
Arguments to graphics functions | |
| |
| |
| |
Standard arguments to graphics functions | |
| |
| |
| |
Specialized plots | |
| |
| |
| |
Interactive graphics | |
| |
| |
| |
Customizing Traditional Graphics | |
| |
| |
| |
The traditional graphics model in more detail | |
| |
| |
| |
Plotting regions | |
| |
| |
| |
The traditional graphics state | |
| |
| |
| |
Controlling the appearance of plots | |
| |
| |
| |
Colors | |
| |
| |
| |
Lines | |
| |
| |
| |
Text | |
| |
| |
| |
Data symbols | |
| |
| |
| |
Axes | |
| |
| |
| |
Plotting regions | |
| |
| |
| |
Clipping | |
| |
| |
| |
Moving to a new plot | |
| |
| |
| |
Arranging multiple plots | |
| |
| |
| |
Using the traditional graphics state | |
| |
| |
| |
Layouts | |
| |
| |
| |
The split-screen approach | |
| |
| |
| |
Annotating plots | |
| |
| |
| |
Annotating the plot region | |
| |
| |
| |
Annotating the margins | |
| |
| |
| |
Legends | |
| |
| |
| |
Axes | |
| |
| |
| |
Coordinate systems | |
| |
| |
| |
Special cases | |
| |
| |
| |
Creating new plots | |
| |
| |
| |
A simple plot from scratch | |
| |
| |
| |
A more complex plot from scratch | |
| |
| |
| |
Writing traditional graphics functions | |
| |
| |
| |
Grid Graphics | |
| |
| |
| |
Trellis Graphics: The lattice Package | |
| |
| |
| |
The lattice graphics model | |
| |
| |
| |
Why another graphics system? | |
| |
| |
| |
lattice plot types | |
| |
| |
| |
The formula argument and multipanel conditioning | |
| |
| |
| |
The group argument and legends | |
| |
| |
| |
The layout argument and arranging plots | |
| |
| |
| |
The scales argument and labeling axes | |
| |
| |
| |
The panel argument and annotating plots | |
| |
| |
| |
Adding output to a lattice plot | |
| |
| |
| |
par.settings and graphical parameters | |
| |
| |
| |
Extending lattice plots | |
| |
| |
| |
The latticeExtra package | |
| |
| |
| |
The Grammar of Graphics: The ggplot2 Package | |
| |
| |
| |
Quick plots | |
| |
| |
| |
The ggplot2 graphics model | |
| |
| |
| |
Why another graphics system? | |
| |
| |
| |
An example data set | |
| |
| |
| |
Data | |
| |
| |
| |
Geoms and aesthetics | |
| |
| |
| |
Scales | |
| |
| |
| |
Statistical transformations | |
| |
| |
| |
The group aesthetic | |
| |
| |
| |
Position adjustments | |
| |
| |
| |
Coordinate transformations | |
| |
| |
| |
Facets | |
| |
| |
| |
Themes | |
| |
| |
| |
Annotating | |
| |
| |
| |
Extending ggplot2 | |
| |
| |
| |
The grid Graphics Model | |
| |
| |
| |
A brief overview of grid graphics | |
| |
| |
| |
A simple example | |
| |
| |
| |
Graphical primitives | |
| |
| |
| |
Standard arguments | |
| |
| |
| |
Clipping | |
| |
| |
| |
Coordinate systems | |
| |
| |
| |
Conversion functions | |
| |
| |
| |
Complex units | |
| |
| |
| |
Controlling the appearance of output | |
| |
| |
| |
Specifying graphical parameter settings | |
| |
| |
| |
Vectorized graphical parameter settings | |
| |
| |
| |
Viewports | |
| |
| |
| |
Pushing, popping, and navigating between viewports | |
| |
| |
| |
Clipping to viewports | |
| |
| |
| |
Viewport lists, stacks, and trees | |
| |
| |
| |
Viewports as arguments to graphical primitives | |
| |
| |
| |
Graphical parameter settings in viewports | |
| |
| |
| |
Layouts | |
| |
| |
| |
Missing values and non-finite values | |
| |
| |
| |
Interactive graphics | |
| |
| |
| |
Customizing lattice plots | |
| |
| |
| |
Adding grid output to lattice output | |
| |
| |
| |
Adding lattice output to grid output | |
| |
| |
| |
Customizing ggplot2 output | |
| |
| |
| |
Adding grid output to ggplot2 output | |
| |
| |
| |
Adding ggplot2 output to grid output | |
| |
| |
| |
The grid Graphics Object Model | |
| |
| |
| |
Working with graphical output | |
| |
| |
| |
Standard functions and arguments | |
| |
| |
| |
Grob lists, trees, and paths | |
| |
| |
| |
Graphical parameter settings in gTrees | |
| |
| |
| |
Viewports as components of gTrees | |
| |
| |
| |
Searching for grobs | |
| |
| |
| |
Working with graphical objects off-screen | |
| |
| |
| |
Capturing output | |
| |
| |
| |
Placing and packing grobs in frames | |
| |
| |
| |
Placing and packing off-screen | |
| |
| |
| |
Other details about grobs | |
| |
| |
| |
Calculating the sizes of grobs | |
| |
| |
| |
Calculating the positions of grobs | |
| |
| |
| |
Editing graphical context | |
| |
| |
| |
Saving and loading grid graphics | |
| |
| |
| |
Working with lattice grobs | |
| |
| |
| |
Working with ggplot2 grobs | |
| |
| |
| |
Developing New Graphics Functions and Objects | |
| |
| |
| |
An example | |
| |
| |
| |
Modularity | |
| |
| |
| |
Simple graphics functions | |
| |
| |
| |
Embedding graphical output | |
| |
| |
| |
Facilitating annotation | |
| |
| |
| |
Editing output | |
| |
| |
| |
Absolute versus relative sizes | |
| |
| |
| |
Graphical objects | |
| |
| |
| |
Overview of creating a new graphical class | |
| |
| |
| |
Defining a new graphical class | |
| |
| |
| |
Validating grobs | |
| |
| |
| |
Drawing grobs | |
| |
| |
| |
Editing grobs | |
| |
| |
| |
Querying grobs | |
| |
| |
| |
Pre-drawing and post-drawing | |
| |
| |
| |
Summary of graphical object methods | |
| |
| |
| |
Completing the example | |
| |
| |
| |
Reusing graphical elements | |
| |
| |
| |
Other details | |
| |
| |
| |
Debugging grid | |
| |
| |
| |
The Graphics Engine | |
| |
| |
| |
Graphics Formats | |
| |
| |
| |
Graphics devices | |
| |
| |
| |
Graphical output formats | |
| |
| |
| |
Vector formats | |
| |
| |
| |
Raster formats | |
| |
| |
| |
Including R graphics in other documents | |
| |
| |
| |
LATEX | |
| |
| |
| |
�Productivity� software | |
| |
| |
| |
Web pages | |
| |
| |
| |
Device-specific features | |
| |
| |
| |
Multiple pages of output | |
| |
| |
| |
Display lists | |
| |
| |
| |
Extension packages | |
| |
| |
| |
Graphical Parameters | |
| |
| |
| |
Colors | |
| |
| |
| |
Semitransparent colors | |
| |
| |
| |
Converting colors | |
| |
| |
| |
Color sets | |
| |
| |
| |
Device Dependency of Color Specifications | |
| |
| |
| |
Line styles | |
| |
| |
| |
Line widths | |
| |
| |
| |
Line types | |
| |
| |
| |
Line ends and joins | |
| |
| |
| |
Data symbols | |
| |
| |
| |
Fonts | |
| |
| |
| |
Font family | |
| |
| |
| |
Font face | |
| |
| |
| |
Multi-line text | |
| |
| |
| |
Locales | |
| |
| |
| |
Mathematical formulae | |
| |
| |
| |
Graphics Packages | |
| |
| |
| |
Graphics Extensions | |
| |
| |
| |
Tricks with text | |
| |
| |
| |
Drawing formatted text on a plot | |
| |
| |
| |
Avoiding text overlaps | |
| |
| |
| |
Peculiar primitives | |
| |
| |
| |
Confidence bars | |
| |
| |
| |
Calculations on colors | |
| |
| |
| |
The colorspace package | |
| |
| |
| |
The RColorBrewer package | |
| |
| |
| |
The munsell package | |
| |
| |
| |
The dichromat package | |
| |
| |
| |
Custom coordinates | |
| |
| |
| |
Converting between traditional coordinate systems | |
| |
| |
| |
Subplots | |
| |
| |
| |
Atypical axes | |
| |
| |
| |
Plot Extensions | |
| |
| |
| |
Venn diagrams | |
| |
| |
| |
Chernoff faces | |
| |
| |
| |
Ternary plots | |
| |
| |
| |
Soil texture diagrams | |
| |
| |
| |
Polar plots | |
| |
| |
| |
Wind roses | |
| |
| |
| |
Hexagonal binning | |
| |
| |
| |
Graphics for Categorical Data | |
| |
| |
| |
The vcd package | |
| |
| |
| |
XMM-Newton | |
| |
| |
| |
Plots of categorical data | |
| |
| |
| |
Categorical data on the y-axis | |
| |
| |
| |
Visualizing contingency tables | |
| |
| |
| |
Categorical plot matrices | |
| |
| |
| |
Multipanel categorical plots | |
| |
| |
| |
Customizing categorical plots | |
| |
| |
| |
The vcdExtra package | |
| |
| |
| |
Maps | |
| |
| |
| |
Map data | |
| |
| |
| |
The maps package | |
| |
| |
| |
Shapefiles | |
| |
| |
| |
Map annotation | |
| |
| |
| |
Complex polygons | |
| |
| |
| |
Map projections | |
| |
| |
| |
Raster maps | |
| |
| |
| |
Other packages | |
| |
| |
| |
Node-and-edge Graphs | |
| |
| |
| |
Creating graphs | |
| |
| |
| |
The graph package | |
| |
| |
| |
Graph layout and rendering | |
| |
| |
| |
The Rgraphviz package | |
| |
| |
| |
Graph attributes | |
| |
| |
| |
Customization | |
| |
| |
| |
Output formats | |
| |
| |
| |
Hypergraphs | |
| |
| |
| |
Other packages | |
| |
| |
| |
The igraph package | |
| |
| |
| |
The network package | |
| |
| |
| |
Diagrams | |
| |
| |
| |
The diagram and shape packages | |
| |
| |
| |
3D Graphics | |
| |
| |
| |
3D graphics concepts | |
| |
| |
| |
The Canterbury earthquake | |
| |
| |
| |
Traditional graphics | |
| |
| |
| |
lattice graphics | |
| |
| |
| |
The scatterplot3d package | |
| |
| |
| |
The rgl package | |
| |
| |
| |
The vrmlgen package | |
| |
| |
| |
Dynamic and Interactive Graphics | |
| |
| |
| |
Dynamic graphics | |
| |
| |
| |
The animation package | |
| |
| |
| |
Interactive graphics | |
| |
| |
| |
Tools and techniques | |
| |
| |
| |
The rggobi package | |
| |
| |
| |
The iplots package | |
| |
| |
| |
Graphics GUIs | |
| |
| |
| |
GUIs for R | |
| |
| |
| |
GUI toolkits | |
| |
| |
| |
Interactive graphics for the web | |
| |
| |
| |
Importing Graphics | |
| |
| |
| |
The Moon and the tides | |
| |
| |
| |
Importing raster graphics | |
| |
| |
| |
Manipulating raster images | |
| |
| |
| |
Importing vector graphics | |
| |
| |
| |
The grImport package | |
| |
| |
| |
Manipulating vector images | |
| |
| |
| |
Combining Graphics Systems | |
| |
| |
| |
The gridBase package | |
| |
| |
| |
Annotating traditional graphics using grid | |
| |
| |
| |
Traditional graphics in grid viewports | |
| |
| |
| |
Problems and limitations | |
| |
| |
Bibliography | |
| |
| |
Index | |