Visualizing data in R 4 graphics using the base, graphics, stats, and ggplot2 packages

Bibliographic Details
Other Authors: Tollefson, Margot, author (author)
Format: eBook
Language:Inglés
Published: [Place of publication not identified] : APress [2021]
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009631717906719
Table of Contents:
  • Intro
  • Table of Contents
  • About the Author
  • About the Technical Reviewer
  • Acknowledgments
  • Part I: An Overview of plot()
  • Chapter 1: Introduction: plot(), qplot(), and ggplot(), Plus Some
  • 1.1 plot(), par(), layout(), and split.screen()
  • 1.2 qplot() and ggplot()
  • 1.3 The Appendixes
  • 1.4 Software Versions and Hardware Used in This Book
  • 1.5 Graphics Devices
  • Chapter 2: The plot() Function
  • 2.1 Arguments and Default Values
  • 2.2 Ancillary Functions
  • 2.3 Methods
  • 2.4 The Graphics Devices and the Functions par(), layout(), and split.screen()
  • 2.5 An Example
  • Chapter 3: The Arguments of plot()
  • 3.1 The Dataset
  • 3.2 Changing the Overall Appearance in plot()
  • 3.2.1 Labels and Axis Limits
  • 3.2.2 Box Type, Aspect Ratio, Annotation, and Expanded Plotting
  • 3.3 Points and Lines
  • 3.3.1 Types of Plots
  • 3.3.2 The Arguments pch and lty
  • 3.4 Details
  • 3.4.1 Colors
  • 3.4.1.1 Assigning Colors with Character Strings
  • 3.4.1.2 Assigning Colors with Integers
  • 3.4.1.3 Assigning Colors with Functions
  • 3.4.2 Fonts and Font Families
  • 3.4.2.1 Font Families and Assigning the Font Family in plot()
  • 3.4.2.2 Font Weights in plot()
  • 3.4.3 Character Size in plot()
  • 3.4.4 Line Details: lwd, lend, ljoin, and lmitre
  • 3.4.5 Making Changes to the Axes
  • 3.4.6 Working with Log Scales
  • Chapter 4: Ancillary Functions for plot()
  • 4.1 Functions That Affect Overall Appearance
  • 4.1.1 The title() Function
  • 4.1.2 The axis() and axTicks() Functions
  • 4.1.2.1 The axis() Function
  • 4.1.2.2 The axTicks() Function
  • 4.1.3 The box(), grid(), clip(), and rug() Functions
  • 4.1.3.1 The box() Function
  • 4.1.3.2 The grid() Function
  • 4.1.3.3 The clip() Function
  • 4.1.3.4 The rug() Function
  • 4.2 Functions Defined at Points
  • 4.2.1 The points() Function
  • 4.2.2 The text() Function.
  • 4.2.3 The symbols() Function
  • 4.2.4 The image() and rasterImage() Functions
  • 4.2.4.1 The image() Function
  • 4.2.4.2 The rasterImage() Function
  • 4.3 Functions That Use Lines
  • 4.3.1 The lines() and abline() Functions
  • 4.3.2 The curve() Function
  • 4.3.3 The segments() and arrows() Functions
  • 4.3.3.1 The segments() Function
  • 4.3.3.2 The arrows() Function
  • 4.3.3.3 An Example of Using segments() and arrows()
  • 4.3.4 Functions That Plot Lines That Close on Themselves: rect(), polygon(), and polypath()
  • 4.3.4.1 The rect() Function
  • 4.3.4.2 The polygon() Function
  • 4.3.4.3 The polypath() Function
  • 4.3.4.4 An Example of rect(), polygon(), and polypath()
  • 4.3.5 The contour() Function
  • 4.4 Functions to Provide Information About or to Interact with a Plot
  • 4.4.1 The legend() and mtext() Functions
  • 4.4.1.1 The legend() Function
  • 4.4.1.2 The mtext() Function
  • 4.4.2 The Interactive Functions: identify() and locator()
  • 4.4.2.1 The identify() Function
  • 4.4.2.2 The locator() Function
  • Chapter 5: The Methods of plot()
  • 5.1 Methods
  • 5.2 The Methods for plot() in the graphics Package
  • 5.2.1 The data.frame Method
  • 5.2.2 The factor Method
  • 5.2.3 The formula Method
  • 5.2.4 The function Method
  • 5.2.5 The histogram Method
  • 5.2.6 The raster Method
  • 5.2.7 The table Method
  • 5.3 The Methods for plot() in the stats Package
  • 5.3.1 The acf Method
  • 5.3.2 The decomposed.ts Method
  • 5.3.3 The dendrogram Method
  • 5.3.4 The density Method
  • 5.3.5 The ecdf Method
  • 5.3.6 The hclust Method
  • 5.3.7 The HoltWinters Method
  • 5.3.8 The isoreg Method
  • 5.3.9 The lm Method
  • 5.3.10 The ppr Method
  • 5.3.11 The prcomp and princomp Methods
  • 5.3.12 The profile.nls Method
  • 5.3.13 The spec, spec.coherency, and spec.phase Methods
  • 5.3.14 The stepfun Method
  • 5.3.15 The stl Method
  • 5.3.16 The ts Method.
  • 5.3.17 The tskernel Method
  • Chapter 6: Graphics Devices and Laying Out Plots
  • 6.1 Graphics Devices and Working with Graphics Devices
  • 6.1.1 The Graphics Devices
  • 6.1.2 Working with Graphics Devices
  • 6.2 The par(), layout(), and split.screen() Functions
  • 6.2.1 The par() Function
  • 6.2.1.1 The Device Region
  • 6.2.1.2 The Figure Region
  • 6.2.1.3 The Plotting Region
  • 6.2.1.4 Text and Line Width Arguments
  • 6.2.1.5 Using par() to Generate Multiple Plots
  • 6.2.2 The layout(), layout.show(), and lcm() Functions
  • 6.2.3 The split.screen(), screen(), erase.screen(), and close.screen() Functions
  • Part II: A Look at the ggplot2 Package
  • Chapter 7: Graphics with the ggplot2 Package: An Introduction
  • 7.1 The Language and Syntax Used in the ggplot2 Package
  • 7.2 The qplot() Function
  • 7.3 An Overview of the ggplot() Function
  • Chapter 8: Working with the ggplot() Function: The Theme and the Aesthetics
  • 8.1 The Theme Functions
  • 8.1.1 The theme() Function
  • 8.1.1.1 The First Five Arguments of theme() and the Theme Element Functions of ggplot2
  • The element_line() Function
  • The element_rect() Function
  • The element_text() and margin() Functions
  • 8.1.1.2 The Sixth Through Ninety-Fourth Specified Arguments of theme() and an Example
  • 8.1.2 The Preset Theme Functions
  • 8.1.3 Working with Themes
  • 8.1.3.1 The theme_get(), theme_set(), theme_update(), and theme_replace() Functions and the + and %+replace% Operators
  • 8.1.3.2 Creating and Registering a New Theme
  • 8.2 The Aesthetic Functions
  • Chapter 9: The Geometry, Statistic, Annotation, and borders() Functions
  • 9.1 The Geometry Functions
  • 9.2 The Statistic Functions
  • 9.3 The Annotation Functions
  • 9.3.1 The annotate() Function
  • 9.3.2 The annotation_custom() and ggplotGrob() Functions
  • 9.3.3 The annotation_logticks() Function.
  • 9.3.4 The annotation_map() and annotation_raster() Functions
  • 9.4 The borders() Function
  • Chapter 10: Formatting and Plot Management Tools
  • 10.1 Working with the scale_, coord_, and  guide_ Functions
  • 10.1.1 The Scale Functions That Affect Color, Size, Shape, and Line Type
  • 10.1.1.1 The Identity Qualifier
  • 10.1.1.2 The Manual Qualifier
  • 10.1.1.3 The Alpha Characteristic
  • 10.1.1.4 The Color, Colour, and Fill Characteristics: Introduction
  • 10.1.1.5 The Color, Colour, and Fill Characteristics: The Continuous Qualifier
  • 10.1.1.6 The Color, Colour, and Fill Characteristics: The Hue Qualifier
  • 10.1.1.7 The Color, Colour, and Fill Characteristics: The Gradient Qualifiers
  • 10.1.1.8 The Color, Colour, and Fill Characteristics: The Step Qualifiers
  • 10.1.1.9 The Color, Colour, and Fill Characteristics: The Brewery Qualifiers
  • 10.1.1.10 The Color, Colour, and Fill Characteristics: The Grey Qualifier
  • 10.1.1.11 The Color, Colour, and Fill Characteristics: The Viridis Qualifiers
  • 10.1.1.12 The Line Type Characteristics
  • 10.1.1.13 The Shape Characteristics
  • 10.1.1.14 The Size and Radius Characteristics
  • 10.1.2 Setting the Order of Evaluation
  • 10.1.3 Formatting Axes with the Scale and Coordinate Functions, Plus Some
  • 10.1.3.1 The Scale Functions
  • 10.1.3.2 The Coordinate Functions
  • 10.1.3.3 Other Axis Functions
  • 10.1.4 The Guide and Draw Key Functions
  • 10.1.4.1 The Guide Functions
  • The Guides That Affect Axes
  • The Guides That Affect the Key to the Scaling Variables
  • 10.1.4.2 The Draw Key Functions
  • 10.2 Functions That Cut, Summarize, and Facet
  • 10.2.1 The Cut Functions
  • 10.2.2 The Summary Functions and the resolution() Function
  • 10.2.3 The Facet Functions
  • 10.3 Working with Plots, Automatic Plots, and Prototypes.
  • 10.3.1 The ggsave() Function and the plot() and print() Functions Applied to ggplot Objects
  • 10.3.2 The autoplot() and autolayer() Functions
  • 10.3.3 Prototype Functions in the ggplot2 Package
  • Part III: Appendixes
  • Appendix A: Plots for Contingency Tables and Discrete Data
  • Appendix B: Plots for Continuous Variables
  • Appendix C: Functions That Plot Multiple Plots
  • Appendix D: Smoothers
  • Appendix E: Plots for Time Series
  • Appendix F: Miscellaneous Plotting Functions
  • Index.