R Graph essentials : use R's powerful graphing capabilities to design and create professional-level graphics /
This book is targeted at R programmers who want to learn the graphing capabilities of R. This book will presume that you have working knowledge of R.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2014.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Base Graphics in R
- One Step at a Time; Learning basic graphics techniques; Creating and joining points; Creating scatterplots and line plots; Colors in R; Passing parameter values to titles and labels; Including a regression line; Graphing mathematical functions; R provides many options; Creating graphs with several curves; Customizing your axes; Creating axis labels; Creating multiple graphs on the same page; Saving your graphs.
- Includes mathematical expressions on your plotsSummary; Chapter 2: Advanced Functions in Base Graphics; Reading datasets into R; Including a regression line and residuals; A medical dataset to create graphs; Creating complex multiple axes; Superposing graphs; Creating point labels; Including a grid on your graph; Shading and coloring your graph; Using polygon() to shade under a normal curve; Creating bar charts; Including a legend; Creating histograms; Creating boxplots; Creating pie charts; Creating dotcharts; R''s color palettes; Using smoothers on your graph; Creating scatterplot matrices.
- Writing functions to create graphsIncluding error bars on your graph; Summary; Chapter 3: Mastering the qplot Function; About qplot; The qplot syntax; Producing scatterplots using qplot; Subsetting your data before graphing; Mapping aesthetics to categorical variables; Controlling colors on your graph; Setting up graphs as objects; Creating facet plots; Creating line graphs using qplot; Creating multiple curves simultaneously; Including smoothed curves; Creating histograms with qplot; Creating facet plots for histograms; Creating kernel density plots; Creating bar charts; Creating boxplots.
- Creating graphs with datesSummary; Chapter 4: Creating Graphs with ggplot; Getting started with ggplot; Mapping color, shape, and size to a variable; Modifying the plotting background; Controlling the legend name and legend labels; Modifying the x and y axes; Creating attractive color schemes; Creating curves for each factor level; Creating histograms; Creating bar charts; Creating a stacked bar chart; Creating a grouped bar chart; Creating a faceted bar chart; Creating boxplots; Labeling points with text; Mapping color to text; Including regression lines; Summary; Index.