Chapter 3Graphing

It is not traditional for a book on numerical methods to devote much space to graphing of data and functions. Yet graphing is an essential part of scientific and engineering work, and R has very strong graphics tools. Therefore, we include a chapter on the topic here. Two recent books on graphing with R are

  • Paul Murrell, R Graphics, Second Edition, Chapman & Hall/CRC, 2011

  • Hrishi V. Mittal, R Graphs Cookbook, Packt Publishing, 2011

3.1 Scatter plots

Perhaps the most common type of plot encountered in the scientific and engineering literature is the scatter plot of a dependent variable y measured or evaluated at a set of discrete points of an independent variable x. As an example, we simulate measurement of the function ...

Get Using R for Numerical Analysis in Science and Engineering now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.