Wickham | ggplot2 | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 211 Seiten

Reihe: Use R!

Wickham ggplot2

Elegant Graphics for Data Analysis
1. Auflage 2009
ISBN: 978-0-387-98141-3
Verlag: Springer
Format: PDF
Kopierschutz: 1 - PDF Watermark

Elegant Graphics for Data Analysis

E-Book, Englisch, 211 Seiten

Reihe: Use R!

ISBN: 978-0-387-98141-3
Verlag: Springer
Format: PDF
Kopierschutz: 1 - PDF Watermark



Provides both rich theory and powerful applications Figures are accompanied by code required to produce them Full color figures

Wickham ggplot2 jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents;5
2;1 Introduction;9
2.1;1.1 Welcome to ggplot2;9
2.2;1.2 Other resources;10
2.3;1.3 What is the grammar of graphics?;11
2.4;1.4 How does ggplot2 fit in with other R graphics?;12
2.5;1.5 About this book;13
2.6;1.6 Installation;14
2.7;1.7 Acknowledgements;14
3;2 Getting started with qplot;16
3.1;2.1 Introduction;16
3.2;2.2 Datasets;17
3.3;2.3 Basic use;18
3.4;2.4 Colour, size, shape and other aesthetic attributes;19
3.5;2.5 Plot geoms;20
3.5.1;2.5.1 Adding a smoother to a plot;21
3.5.2;2.5.2 Boxplots and jittered points;23
3.5.3;2.5.3 Histogram and density plots;25
3.5.4;2.5.4 Bar charts;27
3.5.5;2.5.5 Time series with line and path plots;27
3.6;2.6 Faceting;29
3.7;2.7 Other options;30
3.8;2.8 Differences from plot;33
4;3 Mastering the grammar;34
4.1;3.1 Introduction;34
4.2;3.2 Fuel economy data;35
4.3;3.3 Building a scatterplot;36
4.4;3.4 A more complex plot;41
4.5;3.5 Components of the layered grammar;42
4.5.1;3.5.1 Layers;44
4.5.2;3.5.2 Scales;44
4.5.3;3.5.3 Coordinate system;45
4.5.4;3.5.4 Faceting;45
4.6;3.6 Data structures;46
5;4 Build a plot layer by layer;48
5.1;4.1 Introduction;48
5.2;4.2 Creating a plot;49
5.3;4.3 Layers;49
5.4;4.4 Data;52
5.5;4.5 Aesthetic mappings;53
5.5.1;4.5.1 Plots and layers;53
5.5.2;4.5.2 Setting vs. mapping;54
5.5.3;4.5.3 Grouping;56
5.5.4;4.5.4 Matching aesthetics to graphic objects;59
5.6;4.6 Geoms;62
5.7;4.7 Stat;62
5.8;4.8 Position adjustments;66
5.9;4.9 Pulling it all together;66
5.9.1;4.9.1 Combining geoms and stats;67
5.9.2;4.9.2 Displaying precomputed statistics;69
5.9.3;4.9.3 Varying aesthetics and data;69
6;5 Toolbox;72
6.1;5.1 Introduction;72
6.2;5.2 Overall layering strategy;73
6.3;5.3 Basic plot types;73
6.4;5.4 Displaying distributions;75
6.5;5.5 Dealing with overplotting;79
6.6;5.6 Surface plots;84
6.7;5.7 Drawing maps;84
6.8;5.8 Revealing uncertainty;87
6.9;5.9 Statistical summaries;88
6.9.1;5.9.1 Individual summary functions;91
6.9.2;5.9.2 Single summary function;91
6.10;5.10 Annotating a plot;92
6.11;5.11 Weighted data;95
7;6 Scales, axes and legends;98
7.1;6.1 Introduction;98
7.2;6.2 How scales work;99
7.3;6.3 Usage;100
7.4;6.4 Scale details;103
7.4.1;6.4.1 Common arguments;103
7.4.2;6.4.2 Position scales;105
7.4.3;6.4.3 Colour;109
7.4.4;6.4.4 The manual discrete scale;114
7.4.5;6.4.5 The identity scale;116
7.5;6.5 Legends and axes;117
7.6;6.6 More resources;119
8;7 Positioning;121
8.1;7.1 Introduction;121
8.2;7.2 Faceting;121
8.2.1;7.2.1 Facet grid;122
8.2.2;7.2.2 Facet wrap;126
8.2.3;7.2.3 Controlling scales;127
8.2.4;7.2.4 Missing faceting variables;129
8.2.5;7.2.5 Grouping vs. faceting;129
8.2.6;7.2.6 Dodging vs. faceting;131
8.2.7;7.2.7 Continuous variables;135
8.3;7.3 Coordinate systems;135
8.3.1;7.3.1 Transformation;136
8.3.2;7.3.2 Statistics;139
8.3.3;7.3.3 Cartesian coordinate systems;139
8.3.4;7.3.4 Non-Cartesian coordinate systems;142
9;8 Polishing your plots for publication;144
9.1;8.1 Themes;144
9.1.1;8.1.1 Built-in themes;145
9.1.2;8.1.2 Theme elements and element functions;147
9.2;8.2 Customising scales and geoms;152
9.2.1;8.2.1 Scales;152
9.2.2;8.2.2 Geoms and stats;153
9.3;8.3 Saving your output;153
9.4;8.4 Multiple plots on the same page;156
9.4.1;8.4.1 Subplots;157
9.4.2;8.4.2 Rectangular grids;158
10;9 Manipulating data;161
10.1;9.1 An introduction to plyr;161
10.1.1;9.1.1 Fitting multiple models;165
10.2;9.2 Converting data from wide to long;168
10.2.1;9.2.1 Multiple time series;168
10.2.2;9.2.2 Parallel coordinates plot;171
10.3;9.3 !ggplot()! methods;173
10.3.1;9.3.1 Linear models;174
10.3.2;9.3.2 Writing your own;177
11;10 Reducing duplication;180
11.1;10.1 Introduction;180
11.2;10.2 Iteration;180
11.3;10.3 Plot templates;181
11.4;10.4 Plot functions;184
12;Appendices;186
12.1;A Translating between different syntaxes;187
12.1.1;A.1 Introduction;187
12.1.2;A.2 Translating between qplot and ggplot;187
12.1.2.1;A.2.1 Aesthetics;187
12.1.2.2;A.2.2 Layers;188
12.1.2.3;A.2.3 Scales and axes;188
12.1.2.4;A.2.4 Plot options;189
12.1.3;A.3 Base graphics;189
12.1.3.1;A.3.1 High-level plotting commands;189
12.1.3.2;A.3.2 Low-level drawing;191
12.1.3.3;A.3.3 Legends, axes and grid lines;192
12.1.3.4;A.3.4 Colour palettes;192
12.1.3.5;A.3.5 Graphical parameters;192
12.1.4;A.4 Lattice graphics;192
12.1.5;A.5 GPL;194
12.2;B Aesthetic specifications;196
12.2.1;B.1 Colour;196
12.2.2;B.2 Line type;196
12.2.3;B.3 Shape;197
12.2.4;B.4 Size;197
12.2.5;B.5 Justification;197
12.3;C Manipulating plot rendering with !grid!;199
12.3.1;C.1 Introduction;199
12.3.2;C.2 Plot viewports;199
12.3.3;C.3 Plot grobs;201
12.3.4;C.4 Saving your work;201
12.4;References;203
12.5;Index;206
12.6;Code index;206



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.