ggplot2: Elegant Graphics for Data AnalysisSpringer Science & Business Media, 3 oct 2009 - 213 páginas 1. 1 Welcome to ggplot2 ggplot2 is an R package for producing statistical, or data, graphics, but it is unlike most other graphics packages because it has a deep underlying grammar. This grammar, based on the Grammar of Graphics (Wilkinson, 2005), is composed of a set of independent components that can be composed in many di?erent ways. This makesggplot2 very powerful, because you are not limited to a set of pre-speci?ed graphics, but you can create new graphics that are precisely tailored for your problem. This may sound overwhelming, but because there is a simple set of core principles and very few special cases, ggplot2 is also easy to learn (although it may take a little time to forget your preconceptions from other graphics tools). Practically,ggplot2 provides beautiful, hassle-free plots, that take care of ?ddly details like drawing legends. The plots can be built up iteratively and edited later. A carefully chosen set of defaults means that most of the time you can produce a publication-quality graphic in seconds, but if you do have special formatting requirements, a comprehensive theming system makes it easy to do what you want. Instead of spending time making your graph look pretty, you can focus on creating a graph that best reveals the messages in your data. |
Índice
| 1 | |
2 Getting started with qplot | 9 |
3 Mastering the grammar | 27 |
4 Build a plot layer by layer | 41 |
5 Toolbox | 65 |
6 Scales axes and legends | 91 |
7 Positioning | 115 |
8 Polishing your plots for publication | 139 |
9 Manipulating data | 157 |
10 Reducing duplication | 176 |
Appendices | 183 |
Otras ediciones - Ver todo
Ggplot2: Elegant Graphics for Data Analysis Hadley Wickham No hay ninguna vista previa disponible - 2009 |
ggplot2: Elegant Graphics for Data Analysis Hadley Wickham No hay ninguna vista previa disponible - 2010 |
Términos y frases comunes
aes(x aesthetic mappings alpha alpha blending argument controls arguments axis base graphics basic binwidth bodywt boxplot brainwt c("point carat Cartesian coordinate system categorical variable chapter colour scale column components continuous variable coordinate system count create data frame dataset ddply default scale density plot diamonds discrete displ display draw dsmall facet_grid faceting factor(cyl fill following code following example geom geom_line geom_point geom_smooth ggplot2 grobs height hgram histogram jitter labels last_plot layer linear linetype msleep mtcars multiple opts overplotting package panels parallel coordinates parameters plot object polygon position adjustment position scales Premium Ideal produce qplot qplot(carat qplot(x quantile scatterplot shape shown in Figure shows sleep_total smooth space specify Springer Science+Business Media stat statistical transformation subset summary function Table theme theming system uempmed unemploy values vector viewport vline vore Wickham width xlim ymax ymin
