Handling vegetation-plot data sets
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
README-figures
data
inst
man
.Rbuildignore
.travis.yml
DESCRIPTION
NAMESPACE
NEWS.md
README.Rmd
README.md
TODO.md

README.md

output
rmarkdown::github_document

vegtable

DOI Travis Build Status CRAN_Status_Badge CRAN_downloads total downloads

The aim of vegtable is to provide a way for handling databases stored in Turboveg. This package incorporates many concepts and some functions included in the package vegdata but defining an homonymous S4 class containing all elements of a database in just one object. The package vegtable also contains several methods for this object class.

Species lists in vegtable objects are handled by the package taxlist, thus I will recommend to take a look on it.

This package has been developed as a tool handling data stored in SWEA-Dataveg. Further development is running in the context of the project GlobE-wetlands.

An important source of inspiration for vegtable have been the enthusiastic discussions during several versions of the Meetings on Vegetation Databases.

Updating to the last version of vegtable

The very first step is to install the package devtools and dependencies. Then you just need to execute following commands in your R-session:

library(devtools)
install_github("kamapu/vegtable")

Some examples

The current version of vegtable includes an example data, which corresponds to a subset from SWEA-Dataveg. This data set contains plot observations done in Kenya imported from 5 sources.

library(vegtable)
#> Loading required package: taxlist
#> This is taxlist 0.1.5
#> 
#> Attaching package: 'taxlist'
#> The following object is masked from 'package:base':
#> 
#>     levels
#> This is vegtable 0.1.2
#> 
#> Attaching package: 'vegtable'
#> The following object is masked from 'package:base':
#> 
#>     transform
data(Kenya_veg)

# validate and explore
validObject(Kenya_veg)
#> [1] TRUE
summary(Kenya_veg)
#> ## Metadata 
#> db_name: Sweadataveg
#> sp_list: Easplist
#> dictionary: Swea
#> object size: 10040.6 Kb 
#> validity: TRUE 
#> 
#> ## Content 
#> number of plots: 1946 
#> variables in header: 34 
#> number of relations: 3 
#> 
#> ## Taxonomic List 
#> taxon names: 2302 
#> taxon concepts: 1573 
#> validity: TRUE

Among others, the object contains plot observations done in the Aberdare National Park (Kenya) by Schmitt (1991). We can make a subset including the plots classified by the mentioned author into the Juniperus procera-Podocarpus latifolius community (IDs 780 to 798).

JPcomm <- subset(Kenya_veg, ReleveID %in% c(780:798))
summary(JPcomm)
#> ## Metadata 
#> db_name: Sweadataveg
#> sp_list: Easplist
#> dictionary: Swea
#> object size: 1257 Kb 
#> validity: TRUE 
#> 
#> ## Content 
#> number of plots: 19 
#> variables in header: 17 
#> number of relations: 3 
#> 
#> ## Taxonomic List 
#> taxon names: 2302 
#> taxon concepts: 1573 
#> validity: TRUE

For geo-referenced plots, there is an option for a quick display on Google Earth. You may then apply following command:

vegtable2kml(JPcomm, "JPcomm.kml")

Then you may get a map like this:

figure of kml