Book Image

Learning R for Geospatial Analysis

By : Michael Dorman
Book Image

Learning R for Geospatial Analysis

By: Michael Dorman

Overview of this book

Table of Contents (18 chapters)
Learning R for Geospatial Analysis
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
External Datasets Used in Examples
Cited References
Index

Introducing graphical functions


The graphical representation of data is a central feature, or even the main purpose, of data analysis in general and of spatial data analysis in particular. This section serves as a basic introduction to the procedure of creating graphical output in R. Such an introduction is necessary before moving on to the later chapters, where we would like to quickly be able to display intermediate products during various spatial data analysis steps. In Chapter 9, Advanced Visualization of Spatial Data, we will devote some additional time to the subject of visualization in R, and see how graphical output can be customized when producing publication-quality plots as the end product of spatial data analysis.

Displaying vectors using base graphics

We can graphically display a vector's values using the plot function. For example, the following expression opens a new window within the R environment with a plot of the vector values:

> plot(tmax)

The following screenshot shows...