Guides

A listing of all the guides I have written on this blog can be found here. Jump to:


R Guides

Introductory

Getting Started with R - Everything you need to know, from where to obtain R, to basic commands to get you started using R. If you have never used R, start here.

Graphics

A quick guide to pch symbols - A quick guide to the different pch symbols which are available in R, and how to use them.

A quick guide to line types (lty) - A quick guide to the different line types available in R, and how to use them.

Creating multi-panel plots and figures using layout() - This quick guide shows you how to use the layout() function in R to create multi-panel plots and figures.

Statistics

Principal components analysis (PCA) - How to do principal components analysis, and how to create beautiful looking biplots using R's base functions.

Principal components analysis (PCA) - Part 2 - The follow up guide that shows you how to create loadings plots, add convex hulls, and more biplot customisations.

Climate Data

Getting Climate Data - This guide will take you through the steps to download and extract climate data from CRU for your project.

Working with extracted CRU climate data - This guide will show you how to work with your downloaded CRU climate data, perform analysis and make climate plots.

Extracting WorldClim climate data - This guide will show you how to download and extract climate data from WorldClim datasets. It will also tell you how to create great looking climate maps, of anywhere in the world.

Working with RasterStack objects and WorldClim Data - This guide follows on from the previous guide, and shows you how to work with RasterStack objects (instead of RasterLayers). This is useful when you are dealing with lots of separate data files. It also shows you some additional ways to manipulate and plot the data.

Sources of climate data - This quick guide shows you where to find climate datasets, and raw climate station data.

Walter and Lieth climate diagrams in R - This guide explains what a Walter and Lieth climate diagram is, and how to create one in R.

Interpolated gridded datasets in R: UV-B data - This guide shows you how to interpolate gridded datasets using bilinear interpolation. This example uses UV-B data, but can easily be adapted to use other gridded datasets, such as CRU climate data.

GIS / Mapping

Coming soon!

Pollen Diagrams

Pollen diagrams using rioja - Part 1 - In the first part of this guide, I show you how to plot pollen diagrams using rioja.

Pollen diagrams using rioja - Part 2 - In the second part of this guide, I show you some additional options, and some "hacks" for plotting pollen diagrams.

Pollen diagrams using rioja - Part 3 - In the third part of this guide, I show you how to combine different plot styles on the same pollen diagram.

Useful Functions

Useful functions for manipulating text in R - This guide shows you some useful functions for text manipulation, including abbreviating text, trimming text, and adding to text.