Category Archives: R

Making a pollen diagram from Neotoma

Last week I gave a course on R for palaeoecologists covering data handling using tidyverse, reproducibility and some some ordinations and transfer functions. One of the exercises was to download some pollen data from Neotoma and make a pollen diagram. … Continue reading

Posted in Data manipulation, R, reproducible research | Tagged | 1 Comment

Funky ordination plots with ggvegan

Yesterday, I tweeted a photo of a ordination I plotted with ggvegan, and thought I should show how I made it. ggvegan and ggplot make it easy to make complex ordination plots pic.twitter.com/zmEal7W4Q8 — Richard Telford (@richardjtelford) April 10, 2019 … Continue reading

Posted in R, Uncategorized | Tagged , | Leave a comment

Introducing ggpalaeo

I’ve put some code I used for plotting figures for my soon-to-be-resubmitted manuscript into a package because I thought it might be useful to others. The main use of ggpalaeo is to make ggplot2 plots of transfer function diagnostics from … Continue reading

Posted in R, transfer function | Tagged | 3 Comments

The elevation of Lake Tilo

For my PhD, I studied the palaeolimnology of two lakes in the Ethiopian rift valley, using diatoms to reconstruct changes in the water chemistry of Lake Awassa, an oligosaline caldera lake which retains its low salinity despite having no effluent … Continue reading

Posted in Data manipulation, Palaeohydrology, R, Uncategorized | Tagged , , | Leave a comment

Insist() on the text and numbers agree in Rmarkdown

The manuscript I submitted a long time ago contains multiple sentences where I describe the result with both text and numbers. For example: With a three-year moving average, the correlation is weak (r = 0.21) and not statistically significant (p … Continue reading

Posted in R, reproducible research | Tagged | Leave a comment

Citing R and packages automatically

Almost every manuscript I write has a paragraph that looks something like this: All analyses were done in R version 3.4.4 (R Core Team 2017). Ordinations were fitted with vegan version 2.4-6 (Oksanen et al. 2017) with square-root transformed assemblage … Continue reading

Posted in R, reproducible research | Tagged | 2 Comments

Merging taxa in assemblage data

One possible reason for the impossible percent values I’ve found in assemblages data is that taxa have been merged in Excel after percent were calculated. Doing anything in Excel is to invite disaster, if nothing else, it is very difficult … Continue reading

Posted in Data manipulation, R | Leave a comment