Author archives: Tor-G. Vagen

Basic R markdown template for writing a scientific manuscript

Last update on Sept. 6, 2017.

RStudio is a great environment for writing and R Markdown reports, manuscripts, blogs and other types of publications. It is particularly attractive for writing manuscripts that are reproducible (see for example: https://www.r-bloggers.com/composing-reproducible-manuscripts-using-r-markdown/).

However, it can be a bit daunting at first, so here's a simple template to get you started ...

Continue reading

Introduction to R markdown - 1

Last update on April 27, 2017.

Tree growth analysis

Continue reading

Restoring land for and with Kenyan pastoralists

Last update on July 24, 2015.

Restoring land for and with Kenyan pastoralists

Read the ICRAF blog here:
http://blog.worldagroforestry.org/index.php/2015/07/08/restoring-land-for-kenyan-pastoralists/

R seminar series #10

Last update on April 30, 2015.

String operations in R

Efficiently checking and/or changing strings in complex data sets is often very time consuming, but R has a rich set of functions for managing strings (e.g. sentences or paragraphs). We will focus on the stringr library in this sessions, introducing a few key functions. You will need:

library(stringr ...

Continue reading

R seminar series: Seminar 9

Last update on April 8, 2015.

If you remember, Tor introduced "dplyr" package back in seminar 7. This week, Anthony Ndungu (Research Method Group) continued with "dplyr" and some examples. You can see his presentation below  

Source code for 9th seminar is shown below.


#Antony Ndungu, RMG
#R Seminar
#Using ddply
#......................................................................
setwd("/Users/Antony/Documents/Antony/RMG stuffs/RTraining_ICRAF/Data/")
 
############################################
# library ...

Continue reading

R seminar series: Seminar 8

Last update on March 27, 2015.

We have conducted 8 R Brown-bag seminars till now. This week we decided to revisit some of the examples shown in previous seminars, participants were asked to write code in RStudio and show results (code writing practice session).  

See the presentation of seminar 8 below  


Data used in this seminar is available here and source ...

Continue reading

The Land Degradation Surveillance Framework (LDSF)

Last update on March 27, 2015.

The Land Degradation Surveillance Framework (LDSF)

The Land Degradation Surveillance Framework (LDSF) was developed at the World Agroforestry Centre (ICRAF) over several years of research on land degradation and ecosystem services.

Key facts
The proof-of-concept for the LDSF was completed in the Segou region of Mali in 2008, with support from the United Nations Environment Program (UNEP).

In 2009, the LDSF ...

Continue reading

R seminar series - part 7

Last update on March 19, 2015.

ggplot2 and dplyr

The seventh R brownbag seminar was by Dr. Tor G. Vagen (Senior Scientist, ICRAF) who continued from the previous week and demonstrated more advanced use of ggplot2. The dplyr package, which will be the topic of several future seminars was also introduced.


# Tor-G Vågen
# R brownbag seminar march 19th, 2015
 
# For those ...

Continue reading

R seminar series - part 6

Last update on March 12, 2015.

Sixth seminar of "R brown-bag seminars" was held in ICRAF today.  Leigh Winowiecki (PhD, Soil Scientist, CIAT) presented  "Introduction to ggplot"  topic. Presentation of today's seminar is available here.

Data used in this seminar is available here and source code from seminar 6 is shown below:


#Leigh Winowiecki
#ICRAF Training March 12, 2015
#load ...

Continue reading

Field sampling on Mt Elgon, Uganda

Last update on March 6, 2015.

Field sampling on Mt Elgon, Uganda

The field team from the ICRAF GeoScience Lab led by John Maina and Clement Okia (ICRAF Uganda) has completed the first of two Land Degradation Surveillance Framework (LDSF) sites on Mt Elgon in Uganda, as part of the project "Filling knowledge gaps on the restoration of degraded smallholder landscape mosaics". See slides below to get ...

Continue reading

  • Page 1 of 3
  • 1
  • 2
  • 3
  • 3