Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

joergsteinkamp/RLPJGUESS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LPJ-GUESS is a dynamic global vegetation model (DGVM) available on request at: http://www.nateko.lu.se/lpj-guess

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
**2016-05-11: THIS PACKAGE WILL NOT BE MAINTAINED ANY MORE BY ME.**
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This R package simplifies the usage and visualisation of LPJ-GUESS ascii output for use in R (at least for me). You can read the LPJ-GUESS *.out files and creates data.frames of them, p.e.

* timeseries (either ts or zoo)
* spatial data frames

These data.frames can be visualized with ggplot2 functions. It also includes some templates for ggplot2 themes. For pretty plotting a world border dataset is used (available at http://thematicmapping.org/downloads/world_borders.php) using the following code:

require(ggplot2)
require(maptools)
worldmap <- readShapeSpatial("TM_WORLD_BORDERS-0.3.shp")
worldmap <- fortify(worldmap)
save(worldmap, file="worldmap.RData", compress="xz")

This collection of functions can also be applied to other datasets of the form c("Lon","Lat","Year", data columns). R can build a package of this directory by executing the following command in the parent directory:
> R CMD build RLPJGUESS && R CMD INSTALL RLPJGUESS

And it can be check by:
> R CMD check RLPJGUESS_<version>.tar.gz
This still gives some warnings, with which I can live with.

Of course you could write everything yourself, but why reinventing the wheel?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages